public interface Category extends Channel, java.lang.Comparable<Category>
Modifier and Type | Method and 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 |
createCopy, createCopy, createInvite, createPermissionOverride, createPermissionOverride, delete, getGuild, getInvites, getJDA, getManager, getManagerUpdatable, getMemberPermissionOverrides, getMembers, getName, getParent, getPermissionOverride, getPermissionOverride, getPermissionOverrides, getPosition, getPositionRaw, getRolePermissionOverrides, getType
getCreationTime, getId, getIdLong
java.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
permissionGuildUnavailableException
- If the guild is temporarily not available
java.lang.IllegalArgumentException
- If the provided name is null
or less than 2 characters 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
permissionGuildUnavailableException
- If the guild is temporarily not available
java.lang.IllegalArgumentException
- If the provided name is null
or less than 2 characters or greater than 100 characters in length