public static enum Message.Type extends Enum<Message.Type>
Enum Constant and Description |
---|
CALL
A message created when a call was started.
|
CHANNEL_ICON_CHANGE
A message created when a channel's icon changed.
|
CHANNEL_NAME_CHANGE
A message created when a channel's name changed.
|
CHANNEL_PINNED_MESSAGE
A message created when a message was pinned.
|
DEFAULT
A message created by a user.
|
GUILD_MEMBER_JOIN
A message created when an user joins a guild.
|
RECIPIENT_ADD
A message created when a recipient was added to a DM.
|
RECIPIENT_REMOVE
A message created when a recipient left a DM.
|
Modifier and Type | Method and Description |
---|---|
int |
getValue()
Gets the underlying value as represented by Discord.
|
static Message.Type |
of(int value)
Gets the type of message.
|
static Message.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Message.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Message.Type DEFAULT
public static final Message.Type RECIPIENT_ADD
public static final Message.Type RECIPIENT_REMOVE
public static final Message.Type CALL
public static final Message.Type CHANNEL_NAME_CHANGE
public static final Message.Type CHANNEL_ICON_CHANGE
public static final Message.Type CHANNEL_PINNED_MESSAGE
public static final Message.Type GUILD_MEMBER_JOIN
public static Message.Type[] values()
for (Message.Type c : Message.Type.values()) System.out.println(c);
public static Message.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 Message.Type of(int value)
getValue()
from the returned enum will
equal (==
) the supplied value
.value
- The underlying value as represented by Discord.