From 9a77963823c0cf65c43c79021bf9752fa4ccf668 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Mon, 29 Jun 2020 18:11:38 -0400 Subject: [PATCH] delete msg after bearer revocation --- src/commands/bearer_revoke.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands/bearer_revoke.ts b/src/commands/bearer_revoke.ts index fc4d418..b2f5645 100644 --- a/src/commands/bearer_revoke.ts +++ b/src/commands/bearer_revoke.ts @@ -13,6 +13,7 @@ export default class Bearer_Revoke extends Command { public async run(message: Message, args: string[]) { try { + message.delete(); if (!args[0]) return this.client.commands.get('help').run(message, ['bearer', this.name]); const account = await this.client.db.Account.findOne({ userID: message.author.id }); if (!account) return this.error(message.channel, 'You do not have an account.');