Skip to content

Commit

Permalink
Filtering out the annoying error
Browse files Browse the repository at this point in the history
  • Loading branch information
simonhyll committed May 11, 2023
1 parent a4d9856 commit 3265d04
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/events/messageReactionAdd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ export default event({
}
}
} catch (error) {
console.error(`Issue in messageReactionAdd: ${error}`);
// Couldn't get it to raise the unwanted error in the test server, so instead of
// checking for an error code we'll just filter out any errors that include this text
if (!`${error}`.includes('Not performed in a monitored channel'))
console.error(`Issue in messageReactionAdd: ${error}`);
}
},
});

0 comments on commit 3265d04

Please sign in to comment.