From 3c13e1cba746c2c04689d0deee002bae41fa2e74 Mon Sep 17 00:00:00 2001 From: 404invalid-user Date: Wed, 25 Aug 2021 19:02:33 +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 c3ddccc..a0cd468 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(currentUser.userId).roles.cache.find(r => currentServer.staffRoles.includes(r.name))) { + if (client.guilds.cache.get(currentServer.id).members.find(userInfo.userId).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 => {