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
RestAction.EmptyRestAction<T>, RestAction.FailedRestAction<T>
DEFAULT_FAILURE, DEFAULT_SUCCESS, LOG
Constructor and Description |
---|
ChannelOrderAction(Guild guild,
ChannelType type)
Creates a new ChannelOrderAction instance
|
Modifier and Type | Method and 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() |
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