distype - v3.0.1
    Preparing search index...

    Interface CachedPresence

    A cached presence.

    interface CachedPresence {
        activities?: GatewayActivity[];
        client_status?: GatewayPresenceClientStatus;
        guild_id: string;
        status?: PresenceUpdateReceiveStatus;
        user?: Partial<APIUser> & Pick<APIUser, "id">;
        user_id: string;
    }

    Hierarchy

    • Partial<DiscordTypes.GatewayPresenceUpdateDispatchData>
      • CachedPresence
    Index

    Properties

    activities?: GatewayActivity[]

    User's current activities

    client_status?: GatewayPresenceClientStatus

    User's platform-dependent status

    guild_id: string

    The ID of the guild the presence originates from. Always included, regardless of cache control.

    status?: PresenceUpdateReceiveStatus

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

    user?: Partial<APIUser> & Pick<APIUser, "id">

    The user presence is being updated for

    The user object within this event can be partial, the only field which must be sent is the id field, everything else is optional.

    user_id: string

    The ID of the user the presence originates from. Always included, regardless of cache control.