Skip to content

Commit

Permalink
Add exception catching
Browse files Browse the repository at this point in the history
  • Loading branch information
theimperious1 committed Nov 10, 2024
1 parent 4f8d7ca commit 3cb5967
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/discord/utils/trust.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,12 @@ but they were already marked at trusted in the database, so no message was sent`
*${await topic()}*`,
});

await message.react('<:ts_welcomeA:1222543903677485156>');
await message.react('<:ts_welcomeB:1222543905216663634>');
try {
await message.react('<:ts_welcomeA:1222543903677485156>');
await message.react('<:ts_welcomeB:1222543905216663634>');
} catch (err) {
log.debug(F, 'Attempted to add welcome emojis to welcome message, but they appear to be missing.');
}

await db.members.upsert({
where: {
Expand Down

0 comments on commit 3cb5967

Please sign in to comment.