delete msg for lock/unlock

merge-requests/1/merge
Matthew 2019-10-28 00:23:39 -04:00
parent 63d40da837
commit 8ccd1cac1f
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
2 changed files with 2 additions and 0 deletions

View File

@ -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();

View File

@ -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();