T
- The type of Channel
defining
which channels to orderCategoryOrderAction
public 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
|
ChannelOrderAction(Guild guild,
ChannelType type,
java.util.Collection<T> channels) |
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, getSelectedEntity, getSelectedPosition, moveDown, moveTo, moveUp, reverseOrder, selectPosition, selectPosition, setCheck, shuffleOrder, sortOrder, swapPosition, swapPosition
complete, complete, completeAfter, getJDA, isPassContext, queue, queue, queue, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, setPassContext, 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 ordered.java.lang.IllegalArgumentException
- If one of the specified Guild has no channels of the ChannelType.public ChannelOrderAction(Guild guild, ChannelType type, java.util.Collection<T> channels)
Guild
, as well as the provided
list of Channels
.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 ordered.channels
- The Channels
to order, all of which
are on the same Guild specified, and all of which are of the same generic type of Channel
corresponding to the the ChannelType specified.java.lang.IllegalArgumentException
- If the channels are null
, an empty collection,
or any of them do not have the same ChannelType as the one
provided.public Guild getGuild()
Guild
which holds
the channels from OrderAction.getCurrentOrder()
Guild
public ChannelType getChannelType()
ChannelType
of
all channels that are ordered by this ChannelOrderActionChannelType