1
0
Fork 0

remove unneeded comments in lock

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

View File

@ -39,42 +39,7 @@ export default class Lock extends Command {
const reason = momentMilliseconds ? args.slice(2).join(' ') : args.slice(1).join(' ');
await this.client.util.createModerationLog(account.userID, message.member, 2, reason, momentMilliseconds);
/*
const moderation = new this.client.db.Moderation({
username: account.username,
userID: account.userID,
logID: uuid(),
moderatorID: message.author.id,
reason: momentMilliseconds ? args.slice(2).join(' ') : args.slice(1).join(' '),
type: 2,
date: new Date(),
expiration: {
date: momentMilliseconds ? expiry : null,
processed,
},
});
await moderation.save();
*/
edit.edit(`***${this.client.stores.emojis.success} Account ${account.username} has been locked by Supervisor ${message.author.username}#${message.author.discriminator}.***`);
/*
const embed = new RichEmbed();
embed.setTitle('Account Infraction | Lock');
embed.setColor(15158332);
embed.addField('User', `${account.username} | <@${account.userID}>`, true);
embed.addField('Supervisor', `<@${message.author.id}>`, true);
if ((momentMilliseconds ? args.slice(2).join(' ') : args.slice(1).join(' ')).length > 0) embed.addField('Reason', momentMilliseconds ? args.slice(2).join(' ') : args.slice(1).join(' '), true);
embed.addField('Lock Expiration', `${momentMilliseconds ? moment(expiry).format('dddd, MMMM Do YYYY, h:mm:ss A') : 'Indefinitely'}`, true);
embed.setFooter(this.client.user.username, this.client.user.avatarURL);
embed.setTimestamp();
message.delete();
this.client.getDMChannel(account.userID).then((user) => {
// @ts-ignore
user.createMessage({ embed }).catch();
});
// @ts-ignore
this.client.createMessage('580950455581147146', { embed });
*/
this.client.util.transport.sendMail({
to: account.emailAddress,