public static enum Channel.Type extends Enum<Channel.Type>
Enum Constant and Description |
---|
DM
Represents a
PrivateChannel . |
GROUP_DM
Represents a group DM.
|
GUILD_CATEGORY
Represents a
Category . |
GUILD_TEXT
Represents a
TextChannel . |
GUILD_VOICE
Represents a
VoiceChannel . |
Modifier and Type | Method and Description |
---|---|
int |
getValue()
Gets the underlying value as represented by Discord.
|
static Channel.Type |
of(int value)
Gets the type of channel.
|
static Channel.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Channel.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Channel.Type GUILD_TEXT
TextChannel
.public static final Channel.Type DM
PrivateChannel
.public static final Channel.Type GUILD_VOICE
VoiceChannel
.public static final Channel.Type GROUP_DM
public static final Channel.Type GUILD_CATEGORY
Category
.public static Channel.Type[] values()
for (Channel.Type c : Channel.Type.values()) System.out.println(c);
public static Channel.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getValue()
public static Channel.Type of(int value)
getValue()
from the returned enum will
equal (==
) the supplied value
.value
- The underlying value as represented by Discord.