Table of Contents

Class DiscordActivity

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

Represents a game that a user is playing.

public sealed class DiscordActivity
Inheritance
DiscordActivity

Constructors

DiscordActivity()

Creates a new, empty instance of a DiscordActivity.

DiscordActivity(string)

Creates a new instance of a DiscordActivity with specified name.

DiscordActivity(string, DiscordActivityType)

Creates a new instance of a DiscordActivity with specified name.

Properties

ActivityType

Gets or sets the activity type.

CustomStatus

Gets the custom status of this activity, if present.

Name

Gets or sets the name of user's activity.

RichPresence

Gets the rich presence details, if present.

StreamUrl

Gets or sets the stream URL, if applicable.