fix
parent
aea3604681
commit
0e7353d7f1
|
@ -14,7 +14,6 @@ export default class ApplyT2 extends Command {
|
|||
|
||||
public async run(message: Message, args: string[]) { // eslint-disable-line
|
||||
try {
|
||||
if (!args.length) return this.client.commands.get('help').run(message, [this.name]);
|
||||
const account = await this.client.db.Account.findOne({ userID: message.author.id });
|
||||
if (!account) return this.error(message.channel, 'I can\'t find a CS Account for you.');
|
||||
if (account.tier > 1) return this.error(message.channel, 'You cannot apply for Tier 2 if you already have Tier 2 or higher.');
|
||||
|
|
Loading…
Reference in New Issue