Skip to content

Commit

Permalink
change to a slightly less empty catch()
Browse files Browse the repository at this point in the history
  • Loading branch information
Token07 committed Aug 29, 2024
1 parent 0c0f99c commit b587b96
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/AutoReact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,14 @@ export default class AutoReact {

// If original thinking user
if (this.thinkingUsers.indexOf(message.author.id) !== -1) {
message.react("🤔").catch();
message.react("🤔").catch(() => {});
return;
}

// Otherwise use our custom ones
const emoji = message.guild!.emojis.cache.filter((x: Discord.Emoji) => x.name !== null && this.isThinkingEmojiName(x.name)).random();
if (emoji) {
message.react(emoji).catch();
message.react(emoji).catch(() => {});
return;
}
}
Expand Down Expand Up @@ -240,7 +240,7 @@ export default class AutoReact {
return;
}

message.react(`${this.greetingEmoji.id}`).catch();
message.react(`${this.greetingEmoji.id}`).catch(() => {});
}

private isThinkingEmojiName(emojiName: string) {
Expand Down

0 comments on commit b587b96

Please sign in to comment.