fix(arabot): fix broken catches

This commit is contained in:
smyalygames 2022-10-28 03:03:44 +01:00
parent 9d3f687473
commit 534b45f5db
2 changed files with 3 additions and 3 deletions

View File

@ -95,7 +95,7 @@ class BanCommand extends Command {
// Send DM for reason of ban
await guildMember.send(`You have been banned from ARA for: ${reason}`
+ '\n\nhttps://vbcamp.org/ARA')
.catch();
.catch(() => {});
// Ban the user
await guildMember.ban({ reason });
@ -181,7 +181,7 @@ class BanCommand extends Command {
// Send DM for reason of ban
await user.send(`You have been banned from ARA for: ${reason}`
+ '\n\nhttps://vbcamp.org/ARA')
.catch();
.catch(() => {});
// Ban the user
await guildMember.ban({ reason });

View File

@ -42,7 +42,7 @@ class BanJoin extends Listener {
// Send DM for ban reason
await user.send(`You have been banned from ARA for: ${reason}`
+ '\n\nhttps://vbcamp.org/ARA')
.catch();
.catch(() => {});
// Ban the user
await user.ban({ reason });