Activity
classe · Source
Represents an activity that is part of a user's presence.
Properties
presence
The presence of the Activity Source
id
The activity's id Source
name
The activity's name Source
type
The activity status's type Source
url
If the activity is being streamed, a link to the stream Source
createdTimestamp
Creation date of the activity Source
sessionId
The game's or Spotify session's id Source
platform
The platform the game is being played on Source
timestamps
Timestamps for the activity Source
applicationId
The id of the application associated with this activity Source
details
Details about the activity Source
state
State of the activity Source
syncId
The sync id of the activity This property is not documented by Discord and represents the track id in spotify activities. Source
flags
Flags that describe the activity Source
buttons
The labels of the buttons of this rich presence Source
emoji
Emoji for a custom activity Source
party
Party of the activity Source
assets
Assets for rich presence Source
createdAt
The time the activity was created at Source
Methods
equals
Whether this activity is equal to another activity. Parameters
| Name | Type | Description |
|---|---|---|
activity | Activity | The activity to compare with |
Returns: booleanSource
toString
When concatenated with a string, this automatically returns the activities' name instead of the Activity object. Returns: stringSource