Preview environment

interface GatewayPresenceUpdate

export interface GatewayPresenceUpdate

https://discord.com/developers/docs/topics/gateway-events#presence-update-presence-update-event-fields

optional
activities? : GatewayActivity[]

User's current activitiesSee https://discord.com/developers/docs/topics/gateway-events#activity-object

optional
client_status? : GatewayPresenceClientStatus

User's platform-dependent statusSee https://discord.com/developers/docs/topics/gateway-events#client-status-object

guild_id : Snowflake

ID of the guild

optional
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.**See https://discord.com/developers/docs/resources/user#user-object