Skip to content

Commit

Permalink
do what gausie said
Browse files Browse the repository at this point in the history
  • Loading branch information
horrible-little-slime committed Nov 16, 2023
1 parent d0fac9a commit 250f10e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/commands/misc/itom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ async function onMessage(message: Message) {
try {
await message.react("<:minusone:748016030357520464>");
} catch (error) {
if (
error instanceof DiscordAPIError &&
error.message.includes("Reaction blocked")
) {
if (!(error instanceof DiscordAPIError)) {
throw error;
}
if (error.code === 90001) {
await message.member?.kick("You mess with the bot, you get the boot");
} else {
discordClient.alert(
await discordClient.alert(
`Tried to :minusone: a message containing the forbidden string by ${message.author}; received error ${error}.`,
);
}
Expand Down

0 comments on commit 250f10e

Please sign in to comment.