mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-04-25 04:09:12 +00:00
fix(DiscordService): permissions matcher gm.roles -> gm.rolesList
This commit is contained in:
parent
fd9c6595cd
commit
75461503e3
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ class DiscordService extends Service {
|
||||||
}
|
}
|
||||||
|
|
||||||
const matchFor = permissionInt =>
|
const matchFor = permissionInt =>
|
||||||
!!gm.roles
|
!!gm.rolesList
|
||||||
.map(id => guildRoles.find(role => role.id))
|
.map(id => guildRoles.find(role => role.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