Package net.dv8tion.jda.api.entities
Enum Class MessageActivity.ActivityType
java.lang.Object
java.lang.Enum<MessageActivity.ActivityType>
net.dv8tion.jda.api.entities.MessageActivity.ActivityType
- All Implemented Interfaces:
Serializable,Comparable<MessageActivity.ActivityType>,Constable
- Enclosing class:
MessageActivity
An enum representing
MessageActivity types.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
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 class with the specified name.static MessageActivity.ActivityType[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
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 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
-
getId
public int getId()The id of thisActivityType.- Returns:
- the id of the type
-
fromId
-