mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-21 16:55:03 +00:00
Persist fix (#263)
This commit is contained in:
parent
bf5fe7055b
commit
445cf213d5
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ export const StoreDataEvt = persistEvt({
|
|||
|
||||
const persistedRoles = config.persisted_roles;
|
||||
if (persistedRoles.length && member.roles) {
|
||||
const rolesToPersist = intersection(persistedRoles, member.roles);
|
||||
const rolesToPersist = intersection(persistedRoles, [...member.roles.cache.keys()]);
|
||||
if (rolesToPersist.length) {
|
||||
persist = true;
|
||||
persistData.roles = rolesToPersist;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue