Class Game
- Namespace
- Discord
- Assembly
- Discord.Net.Core.dll
A user's game status.
public class Game : IActivity
- Inheritance
-
Game
- Implements
- Derived
- Inherited Members
Constructors
Game(string, ActivityType, ActivityProperties, string)
Creates a Game with the provided name and ActivityType.
public Game(string name, ActivityType type = ActivityType.Playing, ActivityProperties flags = ActivityProperties.None, string details = null)
Parameters
name
stringThe name of the game.
type
ActivityTypeThe type of activity.
flags
ActivityPropertiesdetails
string
Properties
Details
Gets the details on what the player is currently doing.
public string Details { get; }
Property Value
- string
A string describing what the player is doing.
Flags
Gets the flags that are relevant to this activity.
public ActivityProperties Flags { get; }
Property Value
- ActivityProperties
The value of flags for this activity.
Remarks
This value is determined by bitwise OR-ing ActivityProperties values together.
Name
Gets the name of the activity.
public string Name { get; }
Property Value
- string
A string containing the name of the activity that the user is doing.
Type
Gets the type of the activity.
public ActivityType Type { get; }
Property Value
- ActivityType
The type of activity.
Methods
ToString()
Returns the name of the Game.
public override string ToString()