should set locked to false
parent
9e88f0f8fe
commit
d95e4d8efe
|
@ -21,6 +21,7 @@ export default class Unlock extends Command {
|
||||||
const edit = await message.channel.createMessage(`***${this.client.stores.emojis.loading} Unlocking account...***`);
|
const edit = await message.channel.createMessage(`***${this.client.stores.emojis.loading} Unlocking account...***`);
|
||||||
if (account.username === 'matthew' || account.root) return edit.edit(`***${this.client.stores.emojis.error} Permission denied.***`);
|
if (account.username === 'matthew' || account.root) return edit.edit(`***${this.client.stores.emojis.error} Permission denied.***`);
|
||||||
await this.client.util.exec(`unlock ${account.username}`);
|
await this.client.util.exec(`unlock ${account.username}`);
|
||||||
|
await account.updateOne({ locked: false });
|
||||||
|
|
||||||
const moderation = new this.client.db.Moderation({
|
const moderation = new this.client.db.Moderation({
|
||||||
username: account.username,
|
username: account.username,
|
||||||
|
|
Loading…
Reference in New Issue