Interface RoleOrderAction
-
- All Superinterfaces:
OrderAction<Role,RoleOrderAction>,RestAction<Void>
public interface RoleOrderAction extends OrderAction<Role,RoleOrderAction>
Implementation ofOrderActiondesigned to modify the order ofRolesof the specifiedGuild.
To apply the changes you must finish theRestActionBefore you can use any of the
movemethods you must use eitherselectPosition(Role)orOrderAction.selectPosition(int)!This uses descending order!
- Since:
- 3.0
- See Also:
Guild.modifyRolePositions(),Guild.modifyRolePositions(boolean)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GuildgetGuild()TheGuildwhich holds the roles fromOrderAction.getCurrentOrder()-
Methods inherited from interface net.dv8tion.jda.api.requests.restaction.order.OrderAction
getCurrentOrder, getSelectedEntity, getSelectedPosition, isAscendingOrder, moveDown, moveTo, moveUp, reverseOrder, selectPosition, selectPosition, setCheck, shuffleOrder, sortOrder, swapPosition, swapPosition
-
Methods inherited from interface net.dv8tion.jda.api.requests.RestAction
complete, complete, completeAfter, delay, delay, delay, delay, flatMap, flatMap, getJDA, map, queue, queue, queue, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, submit, submit, submitAfter, submitAfter
-
-
-
-
Method Detail
-
getGuild
@Nonnull Guild getGuild()
TheGuildwhich holds the roles fromOrderAction.getCurrentOrder()- Returns:
- The corresponding
Guild
-
-