Interface CachedPresence

A cached presence.

Hierarchy

  • Partial<DiscordTypes.GatewayPresenceUpdateDispatchData>
    • CachedPresence

Properties

activities?: GatewayActivity[]
client_status?: GatewayPresenceClientStatus
guild_id: string

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

status?: PresenceUpdateStatus

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.

See https://discord.com/developers/docs/resources/user#user-object

user_id: string

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

Generated using TypeDoc