Interface RoleOrderAction
-
- All Superinterfaces:
OrderAction<Role,RoleOrderAction>
,RestAction<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
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, getJDA, queue, queue, queue, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, submit, submit, submitAfter, submitAfter
-
-
-
-
Method Detail
-
getGuild
@Nonnull Guild getGuild()
TheGuild
which holds the roles fromOrderAction.getCurrentOrder()
- Returns:
- The corresponding
Guild
-
-