Skip to content
Success

Changes

Summary

  1. Adding ability to change position of Channels and Roles. (#237) (commit: bc4482c) (details)
Commit bc4482c8355b984163ced180e6bb29d97a18c49a by noreply
Adding ability to change position of Channels and Roles. (#237)
* First pass ChannelOrderAction.

* Second pass on OrderAction system. WIP commit.
to OrderAction.
due to implementation differences with Channel#getPosition and
Role#getPosition.

* Made OrderAction more generic for future use in different ordering
situations.
position system is still broken for RoleOrderAction.

* Implemented support for different order methodologies into OrderAction
Fixed RoleOrderAction. Now actually works.

* Added reverse, sort, and shuffle functionality to OrderAction.
getGuild() to RoleOrderAction and ChannelOrderAction.

* Fixed stuff mentioned in review.

* Added documentation for OrderAction

* added ability to use ascending ordering with RoleOrderAction.

* Added position checking for RoleOrderAction and overall permission
checks

* Finished RoleOrderAction permission logic

* Fixed descriptions explaining what descending / ascending meant for
role ordering.
(commit: bc4482c)
The file was addedsrc/main/java/net/dv8tion/jda/core/requests/restaction/RoleOrderAction.java
The file was addedsrc/main/java/net/dv8tion/jda/core/requests/restaction/ChannelOrderAction.java
The file was modifiedsrc/main/java/net/dv8tion/jda/core/managers/GuildController.java (diff)
The file was modifiedsrc/main/java/net/dv8tion/jda/core/requests/Route.java (diff)
The file was addedsrc/main/java/net/dv8tion/jda/core/requests/restaction/OrderAction.java