Members
(nullable) applicationID :Snowflake
Application ID associated with this activity
Type:
- Source:
(nullable) assets :RichPresenceAssets
Assets for rich presence
Type:
- Source:
(readonly) createdAt :Date
The time the activity was created at
Type:
- Date
- Source:
createdTimestamp :number
Creation date of the activity
Type:
- number
- Source:
(nullable) details :string
Details about the activity
Type:
- string
- Source:
(nullable) emoji :Emoji
Emoji for a custom activity
Type:
- Source:
flags :Readonly.<ActivityFlags>
Flags that describe the activity
Type:
- Readonly.<ActivityFlags>
- Source:
name :string
The name of the activity being played
Type:
- string
- Source:
(nullable) party :Object
Party of the activity
Type:
- Object
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
id |
string |
<nullable> |
ID of the party |
size |
Array.<number> | Size of the party as `[current, max]` |
- Source:
(nullable) state :string
State of the activity
Type:
- string
- Source:
(nullable) timestamps :Object
Timestamps for the activity
Type:
- Object
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
start |
Date |
<nullable> |
When the activity started |
end |
Date |
<nullable> |
When the activity will end |
- Source:
type :ActivityType
The type of the activity status
Type:
- Source:
(nullable) url :string
If the activity is being streamed, a link to the stream
Type:
- string
- Source:
Methods
equals(activity) → {boolean}
Whether this activity is equal to another activity.
Parameters:
Name | Type | Description |
---|---|---|
activity |
Activity | The activity to compare with |
- Source:
Returns:
- Type
- boolean
toString() → {string}
When concatenated with a string, this automatically returns the activities' name instead of the Activity object.
- Source:
Returns:
- Type
- string