please
parent
301f9ff9a2
commit
2274959f8a
|
@ -24,9 +24,11 @@ export default class {
|
||||||
hasUserPerms = resolved.permissions.users.includes(message.author.id);
|
hasUserPerms = resolved.permissions.users.includes(message.author.id);
|
||||||
}
|
}
|
||||||
let hasRolePerms: boolean = false;
|
let hasRolePerms: boolean = false;
|
||||||
for (const role of resolved.permissions.roles) {
|
if (resolved.permissions.roles) {
|
||||||
if (message.member && message.member.roles.includes(role)) {
|
for (const role of resolved.permissions.roles) {
|
||||||
hasRolePerms = true; break;
|
if (message.member && message.member.roles.includes(role)) {
|
||||||
|
hasRolePerms = true; break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!hasRolePerms && !hasUserPerms) return;
|
if (!hasRolePerms && !hasUserPerms) return;
|
||||||
|
|
Loading…
Reference in New Issue