delete msg for lock/unlock
parent
63d40da837
commit
8ccd1cac1f
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue