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,