From f7f64473e6ac79bdb7662258e73523f475aafa6b Mon Sep 17 00:00:00 2001 From: 404invalid-user Date: Wed, 25 Aug 2021 19:04:07 +0100 Subject: [PATCH] fixed error --- src/express/get/dashboard/dashboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/express/get/dashboard/dashboard.js b/src/express/get/dashboard/dashboard.js index a0cd468..02dfd86 100644 --- a/src/express/get/dashboard/dashboard.js +++ b/src/express/get/dashboard/dashboard.js @@ -81,7 +81,7 @@ module.exports = { if (userGuild.owner == true) { guilds.push({ id: userGuild.id, name: userGuild.name, icon: `https://cdn.discordapp.com/icons/${userGuild.id}/${userGuild.icon}.webp`, mutual: true, userPermission: 'owner' }); } else { - if (client.guilds.cache.get(currentServer.id).members.find(userInfo.userId).roles.cache.find(r => currentServer.staffRoles.includes(r.name))) { + if (client.guilds.cache.get(currentServer.id).members.find(userInfo.id).roles.cache.find(r => currentServer.staffRoles.includes(r.name))) { guilds.push({ id: userGuild.id, name: userGuild.name, icon: `https://cdn.discordapp.com/icons/${userGuild.id}/${userGuild.icon}.webp`, mutual: true, userPermission: 'staffrole' }); } else { currentServer.staff.forEach(userid => {