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 Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum 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 Summary
Modifier and TypeMethodDescriptionstatic Channel.ChannelType
byKey
(int key) boolean
guild()
int
key()
static List<Channel.ChannelType>
static Channel.ChannelType
Returns 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
-
TEXT
A text channel in a guild. -
DM
A DM with a single user. -
VOICE
A voice channel in a guild. -
GROUP_DM
A DM with multiple users. -
CATEGORY
A guild channel category with zero or more child channels. -
NEWS
A news channel in a guild. See discordapp/discord-api-docs#881 -
STORE
A 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_THREAD
A thread in an announcement? channel. -
PUBLIC_THREAD
A public thread. -
PRIVATE_THREAD
A private thread. -
STAGE
A stage channel.
-
-
Method Details
-
values
Returns 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
-
valueOf
Returns 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 nameNullPointerException
- if the argument is null
-
byKey
-
threadableChannelTypes
-
key
public int key() -
guild
public boolean guild()
-