Constructor
new Presence(client, dataopt)
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
client |
Client | The instantiating client | ||
data |
Object |
<optional> |
{} | The data for the presence |
- Source:
Members
activities :Array.<Activity>
The activities of this presence
Type:
- Array.<Activity>
- Source:
(readonly) client :Client
The client that instantiated this
Type:
- Source:
(nullable) clientStatus :Object
The devices this presence is on
Type:
- Object
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
web |
ClientPresenceStatus |
<nullable> |
The current presence in the web application |
mobile |
ClientPresenceStatus |
<nullable> |
The current presence in the mobile application |
desktop |
ClientPresenceStatus |
<nullable> |
The current presence in the desktop application |
- Source:
(nullable) guild :Guild
The guild of this presence
Type:
- Source:
(readonly, nullable) member :GuildMember
The member of this presence
Type:
- Source:
status :PresenceStatus
The status of this presence
Type:
- Source:
(readonly, nullable) user :User
The user of this presence
Type:
- Source:
userID :Snowflake
The user ID of this presence
Type:
- Source:
Methods
equals(presence) → {boolean}
Whether this presence is equal to another.
Parameters:
Name | Type | Description |
---|---|---|
presence |
Presence | The presence to compare with |
- Source:
Returns:
- Type
- boolean