Skip to content

Commit

Permalink
fix(GuildMemberRoleManager): unable to remove roles when passed an ar…
Browse files Browse the repository at this point in the history
…ray (#5556)
  • Loading branch information
iShibi committed Apr 30, 2021
1 parent 8a059cc commit 9572521
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/managers/GuildMemberRoleManager.js
Expand Up @@ -134,7 +134,7 @@ class GuildMemberRoleManager {
throw new TypeError('INVALID_TYPE', 'roles', 'Array or Collection of Roles or Snowflakes', true);
}

const newRoles = this._roles.filter(role => !roleOrRoles.includes(role));
const newRoles = this._roles.filter(role => !roleOrRoles.includes(role.id));
return this.set(newRoles, reason);
} else {
const roleID = this.guild.roles.resolveID(roleOrRoles);
Expand Down

0 comments on commit 9572521

Please sign in to comment.