Channel, java.lang.Comparable<Category>, ISnowflakepublic interface Category extends Channel, java.lang.Comparable<Category>
| Modifier and Type | Method | Description |
|---|---|---|
ChannelAction |
createTextChannel(java.lang.String name) |
Creates a new
TextChannel with this Category as parent. |
ChannelAction |
createVoiceChannel(java.lang.String name) |
Creates a new
VoiceChannel with this Category as parent. |
java.util.List<Channel> |
getChannels() |
|
java.util.List<TextChannel> |
getTextChannels() |
All
TextChannels
listed for this Category |
java.util.List<VoiceChannel> |
getVoiceChannels() |
All
VoiceChannels
listed for this Category |
CategoryOrderAction<TextChannel> |
modifyTextChannelPositions() |
Modifies the positional order of this Category's nested
TextChannels. |
CategoryOrderAction<VoiceChannel> |
modifyVoiceChannelPositions() |
Modifies the positional order of this Category's nested
VoiceChannels. |
createCopy, createCopy, createInvite, createPermissionOverride, createPermissionOverride, delete, getGuild, getInvites, getJDA, getManager, getMemberPermissionOverrides, getMembers, getName, getParent, getPermissionOverride, getPermissionOverride, getPermissionOverrides, getPosition, getPositionRaw, getRolePermissionOverrides, getType, putPermissionOverride, putPermissionOverridegetCreationTime, getId, getIdLongjava.util.List<Channel> getChannels()
java.util.List<TextChannel> getTextChannels()
TextChannels
listed for this Categoryjava.util.List<VoiceChannel> getVoiceChannels()
VoiceChannels
listed for this Category@CheckReturnValue ChannelAction createTextChannel(java.lang.String name)
TextChannel with this Category as parent.
For this to be successful, the logged in account has to have the
MANAGE_CHANNEL Permission in the Guild.
This will copy all PermissionOverrides of this Category!
Possible ErrorResponses caused by
the returned RestAction include the following:
MISSING_PERMISSIONS
MISSING_ACCESS
name - The name of the TextChannel to createChannelAction
InsufficientPermissionException - If the logged in account does not have the Permission.MANAGE_CHANNEL permissionjava.lang.IllegalArgumentException - If the provided name is null or empty or greater than 100 characters in length@CheckReturnValue ChannelAction createVoiceChannel(java.lang.String name)
VoiceChannel with this Category as parent.
For this to be successful, the logged in account has to have the
MANAGE_CHANNEL Permission in the Guild.
This will copy all PermissionOverrides of this Category!
Possible ErrorResponses caused by
the returned RestAction include the following:
MISSING_PERMISSIONS
MISSING_ACCESS
name - The name of the VoiceChannel to createChannelAction
InsufficientPermissionException - If the logged in account does not have the Permission.MANAGE_CHANNEL permissionjava.lang.IllegalArgumentException - If the provided name is null or empty or greater than 100 characters in length@CheckReturnValue CategoryOrderAction<TextChannel> modifyTextChannelPositions()
TextChannels.
ChannelOrderAction
specialized for ordering the nested TextChannels of this
Category.
ChannelOrderAction, the returned CategoryOrderAction
can be used to move TextChannels up,
down, or
to a specific position.
Possible ErrorResponses include:
UNNKOWN_CHANNEL
MISSING_ACCESS
CategoryOrderAction for
ordering the Category's TextChannels.@CheckReturnValue CategoryOrderAction<VoiceChannel> modifyVoiceChannelPositions()
VoiceChannels.
ChannelOrderAction
specialized for ordering the nested VoiceChannels of this
Category.
ChannelOrderAction, the returned CategoryOrderAction
can be used to move VoiceChannels up,
down, or
to a specific position.
Possible ErrorResponses include:
UNNKOWN_CHANNEL
MISSING_ACCESS
CategoryOrderAction for
ordering the Category's VoiceChannels.