Class Game
A user's game status.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Discord
Assembly: Discord.Net.Core.dll
Syntax
public class Game : 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 = ActivityType.Playing, ActivityProperties flags = ActivityProperties.None, string details = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The name of the game. |
| ActivityType | type | The type of activity. |
| ActivityProperties | flags | |
| System.String | details |
Properties
| Improve this Doc View SourceDetails
Declaration
public string Details { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Flags
Declaration
public ActivityProperties Flags { get; }
Property Value
| Type | Description |
|---|---|
| ActivityProperties |
Name
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Type
Declaration
public ActivityType Type { get; }
Property Value
| Type | Description |
|---|---|
| ActivityType |
Methods
| Improve this Doc View SourceToString()
Returns the name of the Game.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |
Overrides
System.Object.ToString()