Interface ChannelOrderAction
-
- All Superinterfaces:
OrderAction<GuildChannel,ChannelOrderAction>,RestAction<Void>
- All Known Subinterfaces:
CategoryOrderAction
public interface ChannelOrderAction extends OrderAction<GuildChannel,ChannelOrderAction>
Implementation ofOrderActionto modify the order ofChannelsfor aGuild.
To apply the changes you must finish theRestAction.Before you can use any of the
movemethods you must use eitherselectPosition(GuildChannel)orOrderAction.selectPosition(int)!
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default EnumSet<ChannelType>getChannelTypes()TheChannelTypesfor thesorting bucket.GuildgetGuild()TheGuildwhich holds the channels fromOrderAction.getCurrentOrder()intgetSortBucket()The sorting bucket for this order action.-
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 channels fromOrderAction.getCurrentOrder()- Returns:
- The corresponding
Guild
-
getSortBucket
int getSortBucket()
The sorting bucket for this order action.
Multiple differentChannelTypescan share a common sorting bucket.- Returns:
- The sorting bucket
-
getChannelTypes
@Nonnull default EnumSet<ChannelType> getChannelTypes()
TheChannelTypesfor thesorting bucket.- Returns:
- The channel types
- See Also:
ChannelType.fromSortBucket(int)
-
-