diff --git a/dashboard/utils.js b/dashboard/utils.js index b57a5c9a91..68f3ee35b4 100644 --- a/dashboard/utils.js +++ b/dashboard/utils.js @@ -22,7 +22,7 @@ async function fetchGuild(guildID, client, guilds){ async function fetchUser(userData, client, query){ if(userData.guilds){ userData.guilds.forEach((guild) => { - const perms = new Discord.Permissions(BigInt(guild.permissions)); + const perms = new Discord.Permissions(guild.permissions); if(perms.has("MANAGE_GUILD")){ guild.admin = true; } @@ -42,4 +42,4 @@ async function fetchUser(userData, client, query){ return userInfos; } -module.exports = { fetchUser, fetchGuild }; \ No newline at end of file +module.exports = { fetchUser, fetchGuild };