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 ConstantDescriptionTheMessageActivity
type used for inviting people to join a game.TheMessageActivity
type used for requesting to join a game.TheMessageActivity
type used for inviting people to listen (Spotify) together.TheMessageActivity
type used for inviting people to spectate a game.Represents any unknown or unsupportedMessageActivity
types. -
Method Summary
Modifier and TypeMethodDescriptionstatic MessageActivity.ActivityType
fromId
(int id) int
getId()
The id of thisActivityType
.static MessageActivity.ActivityType
Returns 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
TheMessageActivity
type used for inviting people to join a game. -
SPECTATE
TheMessageActivity
type used for inviting people to spectate a game. -
LISTENING
TheMessageActivity
type used for inviting people to listen (Spotify) together. -
JOIN_REQUEST
TheMessageActivity
type used for requesting to join a game. -
UNKNOWN
Represents any unknown or unsupportedMessageActivity
types.
-
-
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
-