T
- The type of Channel
defining
which channels to orderpublic class ChannelOrderAction<T extends Channel> extends OrderAction<T,ChannelOrderAction<T>>
OrderAction
to modify the order of Channels
for a Guild
.
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 |
---|---|
ChannelOrderAction(Guild guild,
ChannelType type) |
Creates a new ChannelOrderAction instance
|
Modifier and Type | Method | Description |
---|---|---|
ChannelType |
getChannelType() |
The
ChannelType of
all channels that are ordered by this ChannelOrderAction |
Guild |
getGuild() |
The
Guild which holds
the channels from OrderAction.getCurrentOrder() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCurrentOrder, getJDA, getSelectedEntity, getSelectedPosition, moveDown, moveTo, moveUp, reverseOrder, selectPosition, selectPosition, shuffleOrder, sortOrder, swapPosition, swapPosition
complete, complete, completeAfter, queue, queue, queue, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, submit, submit, submitAfter, submitAfter
public ChannelOrderAction(Guild guild, ChannelType type)
guild
- The target Guild
of which to order the channels defined by the specified typetype
- The ChannelType
corresponding
to the generic type of Channel
which
defines the type of channel that will be orderedpublic Guild getGuild()
Guild
which holds
the channels from OrderAction.getCurrentOrder()
Guild
public ChannelType getChannelType()
ChannelType
of
all channels that are ordered by this ChannelOrderActionChannelType