Class DiscordActivity
Represents a game that a user is playing.
Inheritance
System.Object
DiscordActivity
Namespace: DisCatSharp.Entities
Assembly: DisCatSharp.dll
Syntax
public sealed class DiscordActivity
Constructors
| Improve this Doc View SourceDiscordActivity()
Creates a new, empty instance of a DiscordActivity.
Declaration
public DiscordActivity()
DiscordActivity(String)
Creates a new instance of a DiscordActivity with specified name.
Declaration
public DiscordActivity(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the activity. |
DiscordActivity(String, ActivityType)
Creates a new instance of a DiscordActivity with specified name.
Declaration
public DiscordActivity(string name, ActivityType type)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the activity. |
ActivityType | type | Type of the activity. |
Properties
| Improve this Doc View SourceActivityType
Gets or sets the activity type.
Declaration
public ActivityType ActivityType { get; set; }
Property Value
Type | Description |
---|---|
ActivityType |
CustomStatus
Gets the custom status of this activity, if present.
Declaration
public DiscordCustomStatus CustomStatus { get; }
Property Value
Type | Description |
---|---|
DiscordCustomStatus |
Id
Gets or sets the id of user's activity.
Declaration
public string Id { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Name
Gets or sets the name of user's activity.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Platform
Gets or sets platform in this rich presence.
Declaration
public string Platform { get; set; }
Property Value
Type | Description |
---|---|
System.String |
RichPresence
Gets the rich presence details, if present.
Declaration
public DiscordRichPresence RichPresence { get; }
Property Value
Type | Description |
---|---|
DiscordRichPresence |
SessionId
Gets or sets session_id in this rich presence.
Declaration
public string SessionId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
StreamUrl
Gets or sets the stream URL, if applicable.
Declaration
public string StreamUrl { get; set; }
Property Value
Type | Description |
---|---|
System.String |
SyncId
Gets or sets sync id in this rich presence.
Declaration
public string SyncId { get; set; }
Property Value
Type | Description |
---|---|
System.String |