You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a new guild, delete all default channels, invite your bot there
Create a text channel, call it root1
Create a category, in it create five text channels, call them cat1-5
Create two more text channels without category, call them root2 and root3
Using the bot, create a new text channel without category, call it root4, and move it to top using :moveUp(3). Notice that final channels order will be root1, root4, root2, root3
Expected behavior: final channels order is root4, root1, root2, root3
Possible reasoning behind this is that Discordia doesn't properly predict the final position indexes of channels. This is confirmed by checking the channel position after :moveUp(), then manually modifying its name and checking the channel position that is received via channelUpdate event - they will be different, which means there's a discrepancy.
The text was updated successfully, but these errors were encountered:
I never took the time to try to reproduce this issue. I can say that 3.0 will almost certainly not have moveUp/moveDown methods due to complications with validating position values and permissions affected by the role hierarchy. Instead, there are currently Guild:sortRoles and Guild:sortChannels methods which both accept a mapping of id to position.
Steps to reproduce:
Expected behavior: final channels order is root4, root1, root2, root3
Possible reasoning behind this is that Discordia doesn't properly predict the final position indexes of channels. This is confirmed by checking the channel position after :moveUp(), then manually modifying its name and checking the channel position that is received via channelUpdate event - they will be different, which means there's a discrepancy.
The text was updated successfully, but these errors were encountered: