From 8ccd1cac1fa53892e330be78d7d994cc72c79ee7 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Mon, 28 Oct 2019 00:23:39 -0400 Subject: [PATCH] delete msg for lock/unlock --- src/commands/lock.ts | 1 + src/commands/unlock.ts | 1 + 2 files changed, 2 insertions(+) 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();