Skip to content

ClientPresence ​

classe · Source

Represents the client's presence.

Extends: Presence

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 ​

set ​

set(presence: PresenceData): ClientPresence

Sets the client's presence Parameters

NameTypeDescription
presencePresenceDataThe data to set the presence to

Returns: ClientPresenceSource

_parse ​

private

_parse(presence: PresenceData): APIPresence

Parses presence data into a packet ready to be sent to Discord Parameters

NameTypeDescription
presencePresenceDataThe data to parse

Returns: APIPresenceSource

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.