Search Results for

    Show / Hide Table of Contents

    Class DiscordGuildPresenceData

    A user's presence is their current state on a guild. This event is sent when a user's presence or info, such as name or avatar, is updated..

    Inheritance
    Object
    DiscordGuildPresenceData
    Implements
    IEquatable<DiscordGuildPresenceData>
    Inherited Members
    System.Object.Equals(System.Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Object.ToString()
    Namespace: Color_Chan.Discord.Core.Common.API.DataModels
    Assembly: Color-Chan.Discord.Core.dll
    Syntax
    public class DiscordGuildPresenceData : IEquatable<DiscordGuildPresenceData>
    Remarks

    If you are using Gateway Intents, you must specify the GUILD_PRESENCES intent in order to receive Presence Update events.

    Properties

    | Improve this Doc View Source

    GuildId

    id of the guild.

    Declaration
    [JsonPropertyName("guild_id")]
    public ulong GuildId { get; set; }
    Property Value
    Type Description
    System.UInt64
    | Improve this Doc View Source

    Status

    Either "idle", "dnd", "online", or "offline".

    Declaration
    [JsonPropertyName("status")]
    public string Status { get; set; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    User

    The user presence is being updated for.

    Declaration
    [JsonPropertyName("user")]
    public DiscordUserData User { get; set; }
    Property Value
    Type Description
    DiscordUserData

    Implements

    System.IEquatable<T>
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX