Preview environment

class Presence

extends

Base
export class Presence extends Base

Represents a user's presence.

Constructors

constructor(
client: Client<true>
)

Constructs a new instance of the Presence class

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: Presence
) : boolean

Whether this presence is equal to another.

toJSON(
...props: Record<string, boolean | string>[]
) : unknown

Inherited from: Base

valueOf() : string

Inherited from: Base