Skip to content

Commit

Permalink
catch error here as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Techbot121 authored and Meta Construct committed Nov 23, 2023
1 parent bfc1d8a commit d3be60d
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions app/services/discord/modules/shitposting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,16 @@ export default async (bot: DiscordBot) => {
});
if (shat) {
if (options.msg) {
await options.msg.reply({
...shat,
allowedMentions: options.ping ? { repliedUser: true } : { repliedUser: false },
});
await options.msg
.reply({
...shat,
allowedMentions: options.ping
? { repliedUser: true }
: { repliedUser: false },
})
.catch(e => {
console.error(e, shat, options);
});
} else {
await bot
.getTextChannel(bot.config.channels.chat)
Expand Down

0 comments on commit d3be60d

Please sign in to comment.