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,