Interface ChannelOrderAction
- All Superinterfaces:
OrderAction<GuildChannel,
,ChannelOrderAction> RestAction<Void>
- All Known Subinterfaces:
CategoryOrderAction
Implementation of
To apply the changes you must finish the
OrderAction
to modify the order of Channels
for a Guild
.
To apply the changes you must finish the
RestAction
.
Before you can use any of the move
methods
you must use either selectPosition(GuildChannel)
or OrderAction.selectPosition(int)
!
-
Method Summary
Modifier and TypeMethodDescriptiondefault EnumSet<ChannelType>
TheChannelTypes
for thesorting bucket
.getGuild()
TheGuild
which holds the channels fromOrderAction.getCurrentOrder()
int
The sorting bucket for this order action.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 Details
-
getGuild
TheGuild
which holds the channels fromOrderAction.getCurrentOrder()
- Returns:
- The corresponding
Guild
-
getSortBucket
int getSortBucket()The sorting bucket for this order action.
Multiple differentChannelTypes
can share a common sorting bucket.- Returns:
- The sorting bucket
-
getChannelTypes
TheChannelTypes
for thesorting bucket
.- Returns:
- The channel types
- See Also:
-