Class Game
A user's game status.
Implements
Namespace: Discord
Assembly: Discord.Net.Core.dll
Syntax
public class Game : object, IActivity
Constructors
| Improve this Doc View SourceGame(String, ActivityType, ActivityProperties, String)
Creates a Game with the provided name and ActivityType.
Declaration
public Game(string name, ActivityType type = default(ActivityType), ActivityProperties flags = default(ActivityProperties), string details = null)
Parameters
Type | Name | Description |
---|---|---|
String | name | The name of the game. |
ActivityType | type | The type of activity. |
ActivityProperties | flags | |
String | details |
Properties
| Improve this Doc View SourceDetails
Gets the details on what the player is currently doing.
Declaration
public string Details { get; }
Property Value
Type | Description |
---|---|
String | A string describing what the player is doing. |
Flags
Gets the flags that are relevant to this activity.
Declaration
public ActivityProperties Flags { get; }
Property Value
Type | Description |
---|---|
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.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
String | A string containing the name of the activity that the user is doing. |
Type
Gets the type of the activity.
Declaration
public ActivityType Type { get; }
Property Value
Type | Description |
---|---|
ActivityType | The type of activity. |
Methods
| Improve this Doc View SourceToString()
Returns the name of the Game.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |