fix role verification

This commit is contained in:
SowinskiBraeden committed 2024-01-23 17:13:27 -08:00
1 parent 574ead8f4a
commit 7bfecb3624
1 file changed
+2 -2
+2 -2
View File
@@ -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;
}