Skip to content

Removed unnecessary Where condition in ModifyPositionAsync that broke it Fixes #299

Mateusz Brawański requested to merge github/fork/xt449/master into master

Created by: xt449

Summary

Fixes #299 (closed) var roles in ModifyPositionAsync now actually includes the role we want to change the position of.

Details

var roles in ModifyPositionAsync now actually includes the role we want to change the position of, instead of calling DiscordApiClient.ModifyGuildRolePosition with no changes in positions.

Changes proposed

Remove .Where(xr => xr.Id != this.Id) so that we can actually modify the position of the role we want.

Also matches up with syntax for adjusting channel positions.

Merge request reports

Loading