From 633f380cb82ef1afbf54a4f7241edc4e540a78de Mon Sep 17 00:00:00 2001 From: Matthew R Date: Thu, 31 Oct 2019 20:37:53 -0400 Subject: [PATCH] deleteaccount should remove verified role --- src/commands/deleteaccount.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/commands/deleteaccount.ts b/src/commands/deleteaccount.ts index 0c54e0e..3480f74 100644 --- a/src/commands/deleteaccount.ts +++ b/src/commands/deleteaccount.ts @@ -11,6 +11,7 @@ export default class DeleteAccount extends Command { this.usage = `${this.client.config.prefix}deleteaccount [User Name | User ID | Email Address] [Reason] | ${this.client.config.prefix}deleteaccount [Username] [Reason] | ${this.client.config.prefix}deleteaccount [Email] [Reason]`; this.aliases = ['deleteacc', 'dacc', 'daccount', 'delete']; this.permissions = { roles: ['475817826251440128', '525441307037007902'] }; + this.guildOnly = true; this.enabled = true; } @@ -55,6 +56,7 @@ export default class DeleteAccount extends Command { `, }); + this.client.guilds.get('446067825673633794').members.get(account.userID).removeRole('546457886440685578', `Account was deleted by ${message.author.username}.`); return deleting.edit(`${this.client.stores.emojis.success} ***Account ${username} has been deleted by Engineer ${message.author.username}#${message.author.discriminator}***`); } catch (error) { return this.client.util.handleError(error, message, this);