From 01f6a0437207d5e1b72439ea76f3090ea7af37cd Mon Sep 17 00:00:00 2001 From: Matthew R Date: Thu, 10 Sep 2020 23:44:03 -0400 Subject: [PATCH] fixes to dacc --- src/commands/deleteaccount.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/deleteaccount.ts b/src/commands/deleteaccount.ts index d256194..1c0abb6 100644 --- a/src/commands/deleteaccount.ts +++ b/src/commands/deleteaccount.ts @@ -40,7 +40,7 @@ export default class DeleteAccount extends Command { if (reason) logInput.reason = reason; await this.client.util.createModerationLog(args[0], message.member, 4, reason); await this.client.util.deleteAccount(username); - message.delete(); + await message.delete().catch(() => {}); this.client.util.transport.sendMail({ to: account.emailAddress,