public static enum Game.GameType extends java.lang.Enum<Game.GameType>
Enum Constant and Description |
---|
DEFAULT
The GameType used to represent a normal
Game status. |
STREAMING
Used to indicate that the
Game is a stream
This type is displayed as "Streaming" in the discord client. |
TWITCH
Deprecated.
This might be removed when discord introduces more activity types. Use
STREAMING instead. |
Modifier and Type | Method and Description |
---|---|
static Game.GameType |
fromKey(int key)
Gets the GameType related to the provided key.
|
int |
getKey()
The Discord defined id key for this GameType.
|
static Game.GameType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Game.GameType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Game.GameType DEFAULT
Game
status.public static final Game.GameType STREAMING
Game
is a stream
@Deprecated public static final Game.GameType TWITCH
STREAMING
instead.Game
is a stream, specifically for
https://www.twitch.tv.
public static Game.GameType[] values()
for (Game.GameType c : Game.GameType.values()) System.out.println(c);
public static Game.GameType 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 getKey()
public static Game.GameType fromKey(int key)
DEFAULT
key
- The Discord key referencing a GameType.DEFAULT
for unknown key.