update 2
This commit is contained in:
parent
39a74b22dc
commit
f5e7dea9cf
@ -187,7 +187,7 @@ class ClientUser extends User {
|
|||||||
* @typedef {Object} PresenceData
|
* @typedef {Object} PresenceData
|
||||||
* @property {PresenceStatusData} [status] Status of the user
|
* @property {PresenceStatusData} [status] Status of the user
|
||||||
* @property {boolean} [afk] Whether the user is AFK
|
* @property {boolean} [afk] Whether the user is AFK
|
||||||
* @property {(ActivitiesOptions|CustomStatus|RichPresence|SpotifyRPC)[]} [activities] Activity the user is playing
|
* @property {ActivitiesOptions[]|CustomStatus[]|RichPresence[]|SpotifyRPC[]} [activities] Activity the user is playing
|
||||||
* @property {number|number[]} [shardId] Shard id(s) to have the activity set on
|
* @property {number|number[]} [shardId] Shard id(s) to have the activity set on
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -91,7 +91,7 @@ class Presence extends Base {
|
|||||||
if ('activities' in data) {
|
if ('activities' in data) {
|
||||||
/**
|
/**
|
||||||
* The activities of this presence
|
* The activities of this presence
|
||||||
* @type {(Activity|CustomStatus|SpotifyRPC|RichPresence)[]}
|
* @type {Activity[]|CustomStatus[]|RichPresence[]|SpotifyRPC[]}
|
||||||
*/
|
*/
|
||||||
this.activities = data.activities.map(activity => {
|
this.activities = data.activities.map(activity => {
|
||||||
if (fromClient === true) {
|
if (fromClient === true) {
|
||||||
|
Loading…
Reference in New Issue
Block a user