Presence

export class Presence extends Base
export class Presence extends Base
Represents a user's presence.

Extends

Base
constructor(client, data?)
Constructs a new instance of the Presence class
NameTypeOptionalDescription
clientClient<true>NoNone
dataRawPresenceDataYesNone
activities:Activity[]
The activities of this presence
Readonly
client:Client<true>
The client that instantiated this
Inherited from Base
The devices this presence is on
guild:Guild | null
The guild this presence is in
Readonly
member:GuildMember | null
The member of this presence
The status of this presence
Readonly
user:User | null
The user of this presence
userId:Snowflake
The presence's user id
equals(presence):boolean
Whether this presence is equal to another.
NameTypeOptionalDescription
presencePresenceNoThe presence to compare with
toJSON(...props):unknown
NameTypeOptionalDescription
...propsRecord<string, boolean | string>[]NoNone
Inherited from Base
valueOf():string