Table of Contents

Constructor DiscordActivity

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

DiscordActivity()

Creates a new, empty instance of a DiscordActivity.

public DiscordActivity()

DiscordActivity(string)

Creates a new instance of a DiscordActivity with specified name.

public DiscordActivity(string name)

Parameters

name string

Name of the activity.

DiscordActivity(string, DiscordActivityType)

Creates a new instance of a DiscordActivity with specified name.

public DiscordActivity(string name, DiscordActivityType type)

Parameters

name string

Name of the activity.

type DiscordActivityType

Type of the activity.