Activity
Activity ⇐ Base
It’s a class that represents a user’s activity
Kind: global class
Extends: Base
- Activity ⇐
Base
- new Activity([data], client)
- .toJSON() ⇒
Object
new Activity([data], client)
The constructor function initializes an object with properties based on the provided data, and assigns default values if the data is missing or invalid.
Param | Type | Description |
---|---|---|
[data] | Object | The data for the activity. |
client | Client | The client that instantiated this activity. |
activity.toJSON() ⇒ Object
Converts the current object to a JSON representation.
Kind: instance method of Activity
Returns: Object
- - The JSON representation of the object.