mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-11-03 03:29:49 +01:00
fix(arabot): fix broken catches
This commit is contained in:
parent
9d3f687473
commit
534b45f5db
@ -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 });
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user