fix issue with member command
parent
4d84e21c75
commit
1e0716b409
|
@ -35,6 +35,8 @@ export default class Members extends Command {
|
||||||
|
|
||||||
const role = this.client.util.resolveRole(args.join(' '), this.mainGuild);
|
const role = this.client.util.resolveRole(args.join(' '), this.mainGuild);
|
||||||
if (!role) return this.error(message.channel, 'The role you specified doesn\'t exist.');
|
if (!role) return this.error(message.channel, 'The role you specified doesn\'t exist.');
|
||||||
|
const check = this.mainGuild.members.filter((m) => m.roles.includes(role.id));
|
||||||
|
if (!check || check?.length < 1) return this.error(message.channel, 'There are no members in this role.');
|
||||||
const statusArray: string[] = [];
|
const statusArray: string[] = [];
|
||||||
const membersOnline: string[] = [];
|
const membersOnline: string[] = [];
|
||||||
const membersIdle: string[] = [];
|
const membersIdle: string[] = [];
|
||||||
|
|
Loading…
Reference in New Issue