forked from engineering/cloudservices
remove unneeded comments in lock
parent
64725c9282
commit
c3ebd3510c
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue