validation fix in apply
parent
a185a82787
commit
2f7efcec7b
|
@ -34,7 +34,7 @@ export default class Apply extends Command {
|
||||||
description: 'Tier 2 upgrade for Cloud Services account.',
|
description: 'Tier 2 upgrade for Cloud Services account.',
|
||||||
type: 'HARD',
|
type: 'HARD',
|
||||||
url: 'https://eds.libraryofcode.org/cs/t2',
|
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[]) => {
|
func: async (client: Client, ...data: any[]) => {
|
||||||
const member = await client.guilds.get(client.config.guildID).getRESTMember(data[0]);
|
const member = await client.guilds.get(client.config.guildID).getRESTMember(data[0]);
|
||||||
const ax = <AxiosStatic> require('axios');
|
const ax = <AxiosStatic> require('axios');
|
||||||
|
|
Loading…
Reference in New Issue