feat: Presence#clientStatus (#2997)

* feat: Presence#clientStatus

* fix Presence#equals check

* fix typings

* vlad changes

* presence consistency docs

* fix docs

* fix big docs fail
This commit is contained in:
Isabella
2019-02-02 13:29:47 -06:00
committed by Crawl
parent 1db78994dd
commit 75e264da57
3 changed files with 54 additions and 16 deletions

View File

@@ -80,7 +80,7 @@ class ClientUser extends Structures.get('User') {
/**
* Data resembling a raw Discord presence.
* @typedef {Object} PresenceData
* @property {PresenceStatus} [status] Status of the user
* @property {PresenceStatusData} [status] Status of the user
* @property {boolean} [afk] Whether the user is AFK
* @property {Object} [activity] Activity the user is playing
* @property {Object|string} [activity.application] An application object or application id
@@ -111,12 +111,12 @@ class ClientUser extends Structures.get('User') {
* * `idle`
* * `invisible`
* * `dnd` (do not disturb)
* @typedef {string} PresenceStatus
* @typedef {string} PresenceStatusData
*/
/**
* Sets the status of the client user.
* @param {PresenceStatus} status Status to change to
* @param {PresenceStatusData} status Status to change to
* @param {?number|number[]} [shardID] Shard ID(s) to have the activity set on
* @returns {Promise<Presence>}
* @example