1
0
Fork 0

delete inv cmd

refactor/models
Matthew 2019-10-30 22:13:10 -04:00
parent 25c8611b4d
commit e55eeb8dc7
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
2 changed files with 2 additions and 0 deletions

View File

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

View File

@ -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,