diff --git a/src/commands/lock.ts b/src/commands/lock.ts index 3a1c20c..869443b 100644 --- a/src/commands/lock.ts +++ b/src/commands/lock.ts @@ -59,6 +59,7 @@ export default class Lock extends Command { if ((momentMilliseconds ? args.slice(2).join(' ') : args.slice(1).join(' ')).length > 0) embed.addField('Reason', momentMilliseconds ? args.slice(2).join(' ') : args.slice(1).join(' '), true); embed.setFooter(this.client.user.username, this.client.user.avatarURL); embed.setTimestamp(); + message.delete(); this.client.getDMChannel(account.userID).then((user) => { // @ts-ignore user.createMessage({ embed }).catch(); diff --git a/src/commands/unlock.ts b/src/commands/unlock.ts index 8e88998..c42ec21 100644 --- a/src/commands/unlock.ts +++ b/src/commands/unlock.ts @@ -42,6 +42,7 @@ export default class Unlock extends Command { if (args.slice(1).join(' ').length > 0) embed.addField('Reason', args.slice(1).join(' '), true); embed.setFooter(this.client.user.username, this.client.user.avatarURL); embed.setTimestamp(); + message.delete(); this.client.getDMChannel(account.userID).then((user) => { // @ts-ignore user.createMessage({ embed }).catch();