fix role verification
This commit is contained in:
1 parent
574ead8f4a
commit
7bfecb3624
1 file changed
+2
-2
@@ -267,8 +267,8 @@ class LinesPoliceCadBot extends Client {
|
||||
let update = false;
|
||||
for (let i = 0; i < guildDB.allowedRoles.length; i++) {
|
||||
const guild = await this.guilds.cache.get(serverID);
|
||||
const role = guild.roles.cache.find(role => role.id == guild.server.allowedRoles[i])
|
||||
if (role) filteredRoles.push(role);
|
||||
const role = guild.roles.cache.find(role => role.id == guildDB.allowedRoles[i])
|
||||
if (role) filteredRoles.push(guildDB.allowedRoles[i]);
|
||||
if (!role) update = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user