Interface RoleOrderAction
-
- All Superinterfaces:
OrderAction<Role,RoleOrderAction>,RestAction<java.lang.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
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()
TheGuildwhich holds the roles fromOrderAction.getCurrentOrder()- Returns:
- The corresponding
Guild
-
-