Interface RoleOrderAction
-
- All Superinterfaces:
OrderAction<Role,RoleOrderAction>
,RestAction<java.lang.Void>
public interface RoleOrderAction extends OrderAction<Role,RoleOrderAction>
Implementation ofOrderAction
designed to modify the order ofRoles
of the specifiedGuild
.
To apply the changes you must finish theRestAction
Before you can use any of the
move
methods 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 Guild
getGuild()
TheGuild
which holds the roles fromOrderAction.getCurrentOrder()
-
Methods inherited from interface net.dv8tion.jda.api.requests.restaction.order.OrderAction
deadline, getCurrentOrder, getSelectedEntity, getSelectedPosition, isAscendingOrder, moveDown, moveTo, moveUp, reverseOrder, selectPosition, selectPosition, setCheck, shuffleOrder, sortOrder, swapPosition, swapPosition, timeout
-
Methods inherited from interface net.dv8tion.jda.api.requests.RestAction
addCheck, and, and, complete, complete, completeAfter, delay, delay, delay, delay, flatMap, flatMap, getCheck, getJDA, map, mapToResult, onErrorFlatMap, onErrorFlatMap, onErrorMap, onErrorMap, queue, queue, queue, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, submit, submit, submitAfter, submitAfter, zip
-
-
-
-
Method Detail
-
getGuild
@Nonnull Guild getGuild()
TheGuild
which holds the roles fromOrderAction.getCurrentOrder()
- Returns:
- The corresponding
Guild
-
-