mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-12-21 03:58:05 +01:00
fix(arabot): fix broken catches
This commit is contained in:
@@ -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 });
|
||||
|
||||
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user