From 64725c9282fd0e743fedcbdbcb3cc9f00d8bbdf0 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Wed, 30 Oct 2019 20:56:27 -0400 Subject: [PATCH] fix typo and remove unneeded comments --- src/commands/deleteaccount.ts | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/src/commands/deleteaccount.ts b/src/commands/deleteaccount.ts index c987e64..9677b81 100644 --- a/src/commands/deleteaccount.ts +++ b/src/commands/deleteaccount.ts @@ -34,31 +34,12 @@ export default class DeleteAccount extends Command { throw error; } - const deleting = await message.channel.createMessage(`${this.client.stores.emojis.loading} ***Deleteing account, please wait...***`); + const deleting = await message.channel.createMessage(`${this.client.stores.emojis.loading} ***Deleting account, please wait...***`); const reason = args.slice(1).join(' '); const logInput = { username, userID, logID: uuid(), moderatorID: message.author.id, type: 4, date: new Date(), reason: null }; if (reason) logInput.reason = reason; await this.client.util.createModerationLog(args[0], message.member, 4, reason); await this.client.util.deleteAccount(username); - /* - const log = await new this.client.db.Moderation(logInput); - await log.save(); - - const embed = new RichEmbed(); - embed.setTitle('Cloud Account | Delete'); - embed.setColor('ff0000'); - embed.addField('User', `${username} | <@${userID}>`); - embed.addField('Engineer', `<@${message.author.id}>`, true); - if (reason) embed.addField('Reason', reason); - embed.setFooter(this.client.user.username, this.client.user.avatarURL); - embed.setTimestamp(); - // @ts-ignore - this.client.createMessage('580950455581147146', { embed }); - this.client.getDMChannel(userID).then((user) => { - // @ts-ignore - user.createMessage({ embed }).catch(); - }); - */ this.client.util.transport.sendMail({ to: account.emailAddress,