Package com.mewna.catnip.entity.channel
Enum Class Channel.ChannelType
- All Implemented Interfaces:
- Serializable,- Comparable<Channel.ChannelType>,- Constable
- Enclosing interface:
- Channel
The type of a channel.
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionA guild channel category with zero or more child channels.A DM with a single user.A DM with multiple users.A news channel in a guild.A thread in an announcement? channel.A private thread.A public thread.A stage channel.A store channel in a guild.A text channel in a guild.A voice channel in a guild.
- 
Method SummaryModifier and TypeMethodDescriptionstatic Channel.ChannelTypebyKey(int key) booleanguild()intkey()static List<Channel.ChannelType>static Channel.ChannelTypeReturns the enum constant of this class with the specified name.static Channel.ChannelType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
TEXTA text channel in a guild.
- 
DMA DM with a single user.
- 
VOICEA voice channel in a guild.
- 
GROUP_DMA DM with multiple users.
- 
CATEGORYA guild channel category with zero or more child channels.
- 
NEWSA news channel in a guild. See discordapp/discord-api-docs#881
- 
STOREA store channel in a guild. Used for literally what it sounds like. Requires an application with a valid SKU. Not officially announced, but there is some discussion about it in discordapp/discord-api-docs#881.
- 
NEWS_THREADA thread in an announcement? channel.
- 
PUBLIC_THREADA public thread.
- 
PRIVATE_THREADA private thread.
- 
STAGEA stage channel.
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
 
- 
valueOfReturns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum class has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
byKey
- 
threadableChannelTypes
- 
keypublic int key()
- 
guildpublic boolean guild()
 
-