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

[Feature] Optimize Add/RemoveRolesAsync methods #2614

Merged
merged 1 commit into from
Feb 26, 2023

Conversation

Misha-133
Copy link
Member

This PR reworks AddRolesAsync and RemoveRolesAsync methods to use Modify Guild Member endpoint instead of calling Add Guild Member Role and Remove Guild Member Role for each role, which greatly optimizes methods' performance with large role sets.

@csmir csmir merged commit 11481a1 into discord-net:dev Feb 26, 2023
Misha-133 added a commit to Misha-133/Discord.Net that referenced this pull request May 11, 2023
csmir pushed a commit that referenced this pull request May 22, 2023
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.

2 participants