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
stringName of the activity.
DiscordActivity(string, DiscordActivityType)
Creates a new instance of a DiscordActivity with specified name.
public DiscordActivity(string name, DiscordActivityType type)
Parameters
name
stringName of the activity.
type
DiscordActivityTypeType of the activity.