validation fix in apply

pull/29/head
Matthew 2020-10-31 02:36:36 -04:00
parent a185a82787
commit 2f7efcec7b
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ export default class Apply extends Command {
description: 'Tier 2 upgrade for Cloud Services account.',
type: 'HARD',
url: 'https://eds.libraryofcode.org/cs/t2',
validation: (member: Member) => !member.roles.includes('546457886440685578'),
validation: (member: Member) => member.roles.includes('546457886440685578'),
func: async (client: Client, ...data: any[]) => {
const member = await client.guilds.get(client.config.guildID).getRESTMember(data[0]);
const ax = <AxiosStatic> require('axios');