Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(GuildMemberRoleManager): unable to remove roles when passed an array #5556

Merged
merged 1 commit into from Apr 30, 2021

Conversation

iShibi
Copy link
Contributor

@iShibi iShibi commented Apr 22, 2021

Please describe the changes this PR makes and why it should be merged:
fixes: #5555

Sorry for this oversight (see #5495) 🤦‍♂️
The roleOrRoles is an array of role IDs instead of roles now. This means the function passed to the filter method for creating newRoles array should be using role.id and not role.

Status and versioning classification:

  • Code changes have been tested against the Discord API, or there are no code changes
  • I know how to update typings and have done so, or typings don't need updating

@iCrawl iCrawl merged commit 9572521 into discordjs:master Apr 30, 2021
@iShibi iShibi deleted the fix-5555 branch May 14, 2021 09:29
@iCrawl iCrawl added this to the Version 13 milestone Jun 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GuildMemberRoleManager.remove with multiple roles doesn't work properly
5 participants