mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-04-24 19:59:12 +00:00
fix(DiscordService): get permissions matcher finding incorrect role
This commit is contained in:
parent
33a4d6ce76
commit
12d94b1576
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ class DiscordService extends Service {
|
|||
|
||||
const matchFor = permissionInt =>
|
||||
!!gm.rolesList
|
||||
.map(id => guildRoles.find(role => role.id))
|
||||
.map(id => guildRoles.find(role => role.id === id))
|
||||
.filter(x => !!x)
|
||||
.find(role => (role.permissions & permissionInt) === permissionInt)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue