From e55eeb8dc7db3ca238d6dd0dcb32386943a4b064 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Wed, 30 Oct 2019 22:13:10 -0400 Subject: [PATCH] delete inv cmd --- src/commands/notify.ts | 1 + src/commands/warn.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/commands/notify.ts b/src/commands/notify.ts index ef5199a..13bd827 100644 --- a/src/commands/notify.ts +++ b/src/commands/notify.ts @@ -43,6 +43,7 @@ export default class Notify extends Command { Library of Code sp-us | Support Team `, }); + message.delete(); edit.edit(`***${this.client.stores.emojis.success} Send notification to ${account.username}.***`); } catch (error) { await this.client.util.handleError(error, message, this); diff --git a/src/commands/warn.ts b/src/commands/warn.ts index 5c6e767..bd5ce22 100644 --- a/src/commands/warn.ts +++ b/src/commands/warn.ts @@ -21,6 +21,7 @@ export default class Warn extends Command { if (!account) return edit.edit(`***${this.client.stores.emojis.error} Cannot find user.***`); if (account.root) return edit.edit(`***${this.client.stores.emojis.error} Permission denied.***`); await this.client.util.createModerationLog(account.userID, message.member, 1, args.slice(1).join(' ')); + message.delete(); edit.edit(`***${this.client.stores.emojis.success} Account ${account.username} has been warned by Moderator ${message.author.username}#${message.author.discriminator}.***`); this.client.util.transport.sendMail({ to: account.emailAddress,