forked from engineering/cloudservices
delete inv cmd
parent
25c8611b4d
commit
e55eeb8dc7
|
@ -43,6 +43,7 @@ export default class Notify extends Command {
|
||||||
<b><i>Library of Code sp-us | Support Team</i></b>
|
<b><i>Library of Code sp-us | Support Team</i></b>
|
||||||
`,
|
`,
|
||||||
});
|
});
|
||||||
|
message.delete();
|
||||||
edit.edit(`***${this.client.stores.emojis.success} Send notification to ${account.username}.***`);
|
edit.edit(`***${this.client.stores.emojis.success} Send notification to ${account.username}.***`);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
await this.client.util.handleError(error, message, this);
|
await this.client.util.handleError(error, message, this);
|
||||||
|
|
|
@ -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) return edit.edit(`***${this.client.stores.emojis.error} Cannot find user.***`);
|
||||||
if (account.root) return edit.edit(`***${this.client.stores.emojis.error} Permission denied.***`);
|
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(' '));
|
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}.***`);
|
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({
|
this.client.util.transport.sendMail({
|
||||||
to: account.emailAddress,
|
to: account.emailAddress,
|
||||||
|
|
Loading…
Reference in New Issue