Search Results for

    Show / Hide Table of Contents

    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 Source

    DiscordActivity()

    Creates a new, empty instance of a DiscordActivity.

    Declaration
    public DiscordActivity()
    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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 Source

    ActivityType

    Gets or sets the activity type.

    Declaration
    public ActivityType ActivityType { get; set; }
    Property Value
    Type Description
    ActivityType
    | Improve this Doc View Source

    CustomStatus

    Gets the custom status of this activity, if present.

    Declaration
    public DiscordCustomStatus CustomStatus { get; }
    Property Value
    Type Description
    DiscordCustomStatus
    | Improve this Doc View Source

    Id

    Gets or sets the id of user's activity.

    Declaration
    public string Id { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Name

    Gets or sets the name of user's activity.

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Platform

    Gets or sets platform in this rich presence.

    Declaration
    public string Platform { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    RichPresence

    Gets the rich presence details, if present.

    Declaration
    public DiscordRichPresence RichPresence { get; }
    Property Value
    Type Description
    DiscordRichPresence
    | Improve this Doc View Source

    SessionId

    Gets or sets session_id in this rich presence.

    Declaration
    public string SessionId { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    StreamUrl

    Gets or sets the stream URL, if applicable.

    Declaration
    public string StreamUrl { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    SyncId

    Gets or sets sync id in this rich presence.

    Declaration
    public string SyncId { get; set; }
    Property Value
    Type Description
    System.String

    Extension Methods

    ReflectionUtilities.ToDictionary<T>(T)
    • Improve this Doc
    • View Source
    In This Article
    Back to top © 2021-2022 Aiko IT Systems