java.io.Serializable
, java.lang.Comparable<MessageType>
public enum MessageType extends java.lang.Enum<MessageType>
Enum Constant | Description |
---|---|
CALL |
Specialized message used for Groups as a System-Message showing that a Call was started.
|
CHANNEL_ICON_CHANGE |
Specialized message used for Groups as a System-Message showing that the icon of the Group was changed.
|
CHANNEL_NAME_CHANGE |
Specialized message used for Groups as a System-Message showing that the name of the Group was changed.
|
CHANNEL_PINNED_ADD |
Specialized message used in MessageChannels as a System-Message to announce new pins
|
DEFAULT |
The normal text messages received when a user or bot sends a Message.
|
GUILD_MEMBER_JOIN |
Specialized message used to welcome new members in a Guild
|
RECIPIENT_ADD |
Specialized messages used for Groups as a System-Message showing that a new User has been added to the Group.
|
RECIPIENT_REMOVE |
Specialized messages used for Groups as a System-Message showing that a new User has been removed from the Group.
|
UNKNOWN |
Unknown MessageType.
|
Modifier and Type | Method | Description |
---|---|---|
static MessageType |
fromId(int id) |
Used to retrieve a MessageType based on the Discord id key.
|
int |
getId() |
The Discord id key used to reference the MessageType.
|
static MessageType |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static MessageType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MessageType DEFAULT
public static final MessageType RECIPIENT_ADD
public static final MessageType RECIPIENT_REMOVE
public static final MessageType CALL
public static final MessageType CHANNEL_NAME_CHANGE
public static final MessageType CHANNEL_ICON_CHANGE
public static final MessageType CHANNEL_PINNED_ADD
public static final MessageType GUILD_MEMBER_JOIN
public static final MessageType UNKNOWN
public static MessageType[] values()
for (MessageType c : MessageType.values()) System.out.println(c);
public static MessageType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getId()
public static MessageType fromId(int id)
id
provided is not a known id, UNKNOWN
is returnedid
- The Discord key id of the requested MessageType.UNKNOWN
.