From f1839953251e7c27e79e5eaa5ca6fa84f1ac9c09 Mon Sep 17 00:00:00 2001 From: TomDakan Date: Tue, 26 Sep 2023 08:46:55 -0700 Subject: [PATCH] Removed duplicate call to discord.getGuildMember() Co-authored-by: Tymoteusz Boba --- server/modules/authentication/discord/authentication.js | 1 - 1 file changed, 1 deletion(-) diff --git a/server/modules/authentication/discord/authentication.js b/server/modules/authentication/discord/authentication.js index 26f4a42e..354768e9 100644 --- a/server/modules/authentication/discord/authentication.js +++ b/server/modules/authentication/discord/authentication.js @@ -23,7 +23,6 @@ module.exports = { }, async (req, accessToken, refreshToken, profile, cb) => { try { if (conf.roles) { - const memberRoles = await discord.getGuildMember(accessToken, conf.guildId) const authRoles = conf.roles.split(); const { roles } = await discord.getGuildMember(accessToken, conf.guildId); if (authRoles.every(role => roles.includes(role))