T - The type of Channel to move
using this CategoryOrderAction, either TextChannel,
or VoiceChannel.public class CategoryOrderAction<T extends Channel> extends ChannelOrderAction<T>
ChannelOrderAction with
similar functionality, but constrained to the bounds of a single Category.
RestAction.
Before you can use any of the move methods
you must use either selectPosition(Channel) or OrderAction.selectPosition(int)!
RestAction.EmptyRestAction<T>DEFAULT_FAILURE, DEFAULT_SUCCESS, LOG| Constructor | Description |
|---|---|
CategoryOrderAction(Category category,
ChannelType type) |
Creates a new CategoryOrderAction for the specified
Category |
| Modifier and Type | Method | Description |
|---|---|---|
Category |
getCategory() |
Gets the
Category
controlled by this CategoryOrderAction. |
getChannelType, getGuildequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCurrentOrder, getSelectedEntity, getSelectedPosition, moveDown, moveTo, moveUp, reverseOrder, selectPosition, selectPosition, setCheck, shuffleOrder, sortOrder, swapPosition, swapPositioncomplete, complete, completeAfter, getJDA, isPassContext, queue, queue, queue, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, setPassContext, submit, submit, submitAfter, submitAfterpublic CategoryOrderAction(Category category, ChannelType type)
Categorycategory - The target Category
which the new CategoryOrderAction will order channels from.type - The ChannelType that
matches the returning value of Channel#getType()
for the generic Channel type T.java.lang.IllegalArgumentException - If the ChannelType is not one that can be retrieved from a Category.
Currently the only two allowed are ChannelType.TEXT and ChannelType.VOICE.