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))