diff --git a/src/commands/cwg_selfserv.ts b/src/commands/cwg_selfserv.ts index a169a7e..2ebd84b 100644 --- a/src/commands/cwg_selfserv.ts +++ b/src/commands/cwg_selfserv.ts @@ -29,7 +29,7 @@ export default class CWG_SelfService extends Command { const account = await this.client.db.Account.findOne({ userID: message.author.id }); if (!account) return this.error(message.channel, 'Cannot locate account.'); - if (!this.checkAuthorizationToken(message.author.id, args[1])) return this.error(message.channel, 'The authentication token provided is invalid.'); + if (await this.checkAuthorizationToken(message.author.id, args[1]) !== true) return this.error(message.channel, 'The authentication token provided is invalid.'); if (!this.domainTextValidation(args[0])) return this.error(message.channel, 'Invalid domain.');