Package net.dv8tion.jda.api.entities
Enum MessageActivity.ActivityType
java.lang.Object
java.lang.Enum<MessageActivity.ActivityType>
net.dv8tion.jda.api.entities.MessageActivity.ActivityType
- All Implemented Interfaces:
Serializable,Comparable<MessageActivity.ActivityType>
- Enclosing class:
- MessageActivity
An enum representing
MessageActivity types.-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTheMessageActivitytype used for inviting people to join a game.TheMessageActivitytype used for requesting to join a game.TheMessageActivitytype used for inviting people to listen (Spotify) together.TheMessageActivitytype used for inviting people to spectate a game.Represents any unknown or unsupportedMessageActivitytypes. -
Method Summary
Modifier and TypeMethodDescriptionstatic MessageActivity.ActivityTypefromId(int id) intgetId()The id of thisActivityType.static MessageActivity.ActivityTypeReturns the enum constant of this type with the specified name.static MessageActivity.ActivityType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
JOIN
TheMessageActivitytype used for inviting people to join a game. -
SPECTATE
TheMessageActivitytype used for inviting people to spectate a game. -
LISTENING
TheMessageActivitytype used for inviting people to listen (Spotify) together. -
JOIN_REQUEST
TheMessageActivitytype used for requesting to join a game. -
UNKNOWN
Represents any unknown or unsupportedMessageActivitytypes.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getId
public int getId()The id of thisActivityType.- Returns:
- the id of the type
-
fromId
-