You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using an array of multiple discord guildId and roleId within the config, we have the below error
1|leaderboard | TypeError: Cannot read properties of undefined (reading 'some')
1|leaderboard | [next] Magik tried to login: {"hasError":true,"hasRole":false,"isMemberOfGuild":false,"areGuildIdsConfigured":true,"areRoleIdsConfigured":true,"finaleDecision":false}
Adding logging console.log({ member }); shows the error of: [next] { member: { message: 'Unknown Guild', code: 10004 } }
This happens when a user is in more than 1 guild but does not have all the roleId's allocated to them represented in each guild.
Example:
User 1 > Guild 1 = roleId & guildId in config
User 1 > Guild 2 = Only a member (no roleId assigned thats defined in config)
User 1 > Guild 3 = Only a member (no roleId assigned thats defined in config)
Appears that if a guildId is set, and your member is in the server, it requires you to have the role in roleId
Fix:
Compare user to guilds (If in guild, check role) if any roleId match's then grant access.
The text was updated successfully, but these errors were encountered:
When using an array of multiple discord
guildId
androleId
within the config, we have the below errorAdding logging
console.log({ member });
shows the error of:[next] { member: { message: 'Unknown Guild', code: 10004 } }
This happens when a user is in more than 1 guild but does not have all the roleId's allocated to them represented in each guild.
Example:
User 1 > Guild 1 = roleId & guildId in config
User 1 > Guild 2 = Only a member (no roleId assigned thats defined in config)
User 1 > Guild 3 = Only a member (no roleId assigned thats defined in config)
Appears that if a
guildId
is set, and your member is in the server, it requires you to have the role inroleId
Fix:
Compare user to guilds (If in guild, check role) if any roleId match's then grant access.
The text was updated successfully, but these errors were encountered: