1
0
Fork 0

Fixed order

refactor/models
Bsian 2019-10-30 20:19:13 +00:00
parent cf0bb51c1f
commit 869867e2c7
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 1 additions and 1 deletions

View File

@ -35,11 +35,11 @@ export default class DeleteAccount extends Command {
} }
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} ***Deleteing account, please wait...***`);
await this.client.util.deleteAccount(username);
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);
/* /*
const log = await new this.client.db.Moderation(logInput); const log = await new this.client.db.Moderation(logInput);
await log.save(); await log.save();