Skip to content

Presence

classe · Source

Represents a user's presence.

Extends: Base

Properties

userId

userId: Snowflake

The presence's user id Source

guild

nullable

guild: Guild

The guild this presence is in Source

user

readonly · nullable

user: User

The user of this presence Source

member

readonly · nullable

member: GuildMember

The member of this presence Source

status

status: PresenceStatus

The status of this presence Source

activities

activities: Array<CustomStatus> | Array<RichPresence> | Array<SpotifyRPC> | Array<Activity>

The activities of this presence (Always Activity[] if not ClientUser) Source

clientStatus

nullable

clientStatus: Object

The devices this presence is on Source

lastModified

lastModified: number

The timestamp this presence was last updated Source

client

readonly

client: Client

The client that instantiated this Source

Methods

equals

equals(presence: Presence): boolean

Whether this presence is equal to another. Parameters

NameTypeDescription
presencePresenceThe presence to compare with

Returns: booleanSource

Unofficial software. Not affiliated with or supported by Discord.