delete msg after bearer revocation

merge-requests/4/head
Matthew 2020-06-29 18:11:38 -04:00
parent d807d6bdfc
commit 9a77963823
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 1 additions and 0 deletions

View File

@ -13,6 +13,7 @@ export default class Bearer_Revoke extends Command {
public async run(message: Message, args: string[]) { public async run(message: Message, args: string[]) {
try { try {
message.delete();
if (!args[0]) return this.client.commands.get('help').run(message, ['bearer', this.name]); 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 }); 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.'); if (!account) return this.error(message.channel, 'You do not have an account.');