mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-04-25 04:09: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 =>
|
const matchFor = permissionInt =>
|
||||||
!!gm.rolesList
|
!!gm.rolesList
|
||||||
.map(id => guildRoles.find(role => role.id))
|
.map(id => guildRoles.find(role => role.id === id))
|
||||||
.filter(x => !!x)
|
.filter(x => !!x)
|
||||||
.find(role => (role.permissions & permissionInt) === permissionInt)
|
.find(role => (role.permissions & permissionInt) === permissionInt)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue