Class

Presence

Presence()

Presence information for a user.
Constructor

# new Presence()

View Source models/Presence.ts, line 6

Classes

Presence

Members

# currentlyActive

Whether or not the user is currently active.

View Source models/Presence.ts, line 32

# lastActiveAgo

How long ago in milliseconds this presence was changed. May be falsey.

View Source models/Presence.ts, line 26

# state

The state for this presence update.

View Source models/Presence.ts, line 14

# statusMessage

The status message which accompanies this presence. May be falsey.

View Source models/Presence.ts, line 20

Methods

# currentlyActive() → {boolean}

Whether or not the user is currently active.

View Source models/Presence.ts, line 66

boolean

# lastActiveAgo() → {number}

How long ago in milliseconds this presence was changed. May be falsey.

View Source models/Presence.ts, line 59

number

# state() → {PresenceState}

The state for this presence update.

View Source models/Presence.ts, line 45

# statusMessage() → {string}

The status message which accompanies this presence. May be falsey.

View Source models/Presence.ts, line 52

string