1
0
Fork 0

fix typo and remove unneeded comments

refactor/models
Matthew 2019-10-30 20:56:27 -04:00
parent a3bd122d2e
commit 64725c9282
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 1 additions and 20 deletions

View File

@ -34,31 +34,12 @@ export default class DeleteAccount extends Command {
throw error; 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 reason = args.slice(1).join(' ');
const logInput = { username, userID, logID: uuid(), moderatorID: message.author.id, type: 4, date: new Date(), reason: null }; const logInput = { username, userID, logID: uuid(), moderatorID: message.author.id, type: 4, date: new Date(), reason: null };
if (reason) logInput.reason = reason; if (reason) logInput.reason = reason;
await this.client.util.createModerationLog(args[0], message.member, 4, reason); await this.client.util.createModerationLog(args[0], message.member, 4, reason);
await this.client.util.deleteAccount(username); 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({ this.client.util.transport.sendMail({
to: account.emailAddress, to: account.emailAddress,