fix command handler issue
parent
8a6b6de78f
commit
b87f1c112b
|
@ -19,7 +19,7 @@ export default class {
|
||||||
if (!resolved) return;
|
if (!resolved) return;
|
||||||
if (resolved.guildOnly && !(message.channel instanceof TextChannel)) return;
|
if (resolved.guildOnly && !(message.channel instanceof TextChannel)) return;
|
||||||
let hasUserPerms: boolean;
|
let hasUserPerms: boolean;
|
||||||
if (resolved.permissions.users) {
|
if (resolved.permissions.users.length > 0) {
|
||||||
hasUserPerms = resolved.permissions.users.includes(message.author.id);
|
hasUserPerms = resolved.permissions.users.includes(message.author.id);
|
||||||
}
|
}
|
||||||
let hasRolePerms: boolean = false;
|
let hasRolePerms: boolean = false;
|
||||||
|
|
Loading…
Reference in New Issue