Table of Contents

Class CustomStatusGame

Namespace
Discord
Assembly
Discord.Net.Core.dll

A user's activity for their custom status.

public class CustomStatusGame : Game, IActivity
Inheritance
CustomStatusGame
Implements
Inherited Members

Constructors

CustomStatusGame(string)

Creates a new custom status activity.

public CustomStatusGame(string state)

Parameters

state string

The string displayed as bot's custom status.

Remarks

Bots can't set custom status emoji.

Properties

CreatedAt

Gets the timestamp of when this status was created.

public DateTimeOffset CreatedAt { get; }

Property Value

DateTimeOffset

A DateTimeOffset containing the time when this status was created.

Emote

Gets the emote, if it is set.

public IEmote Emote { get; }

Property Value

IEmote

An IEmote containing the Emoji or GuildEmote set by the user.

State

Gets the state of the status.

public string State { get; }

Property Value

string

Methods

ToString()

Returns the name of the Game.

public override string ToString()

Returns

string