Skip to content

Commit

Permalink
fix(*RoleManager): Create set of role ids correctly (#6674)
Browse files Browse the repository at this point in the history
Co-authored-by: Jan <66554238+vaporox@users.noreply.github.com>
  • Loading branch information
Jiralite and vaporoxx committed Sep 26, 2021
1 parent a06a87a commit f8aa4bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/managers/GuildEmojiRoleManager.js
Expand Up @@ -51,7 +51,7 @@ class GuildEmojiRoleManager extends DataManager {
resolvedRoles.push(resolvedRole);
}

const newRoles = [...new Set(resolvedRoles.concat(...this.cache.values()))];
const newRoles = [...new Set(resolvedRoles.concat(...this.cache.keys()))];
return this.set(newRoles);
}

Expand Down
2 changes: 1 addition & 1 deletion src/managers/GuildMemberRoleManager.js
Expand Up @@ -102,7 +102,7 @@ class GuildMemberRoleManager extends DataManager {
resolvedRoles.push(resolvedRole);
}

const newRoles = [...new Set(resolvedRoles.concat(...this.cache.values()))];
const newRoles = [...new Set(resolvedRoles.concat(...this.cache.keys()))];
return this.set(newRoles, reason);
} else {
roleOrRoles = this.guild.roles.resolveId(roleOrRoles);
Expand Down

0 comments on commit f8aa4bd

Please sign in to comment.