docs(Presence): add missing descriptions to clientStatus (#3127)

* add description on jsdocs for User.clientStatus

* Update src/structures/Presence.js

Co-Authored-By: izexi <43889168+izexi@users.noreply.github.com>

* Update src/structures/Presence.js

Co-Authored-By: izexi <43889168+izexi@users.noreply.github.com>

* Update src/structures/Presence.js

Co-Authored-By: izexi <43889168+izexi@users.noreply.github.com>

* update typings
This commit is contained in:
izexi
2019-04-14 13:43:01 +01:00
committed by SpaceEEC
parent 97c196ca6a
commit 5d10585af8
2 changed files with 7 additions and 7 deletions

View File

@@ -77,9 +77,9 @@ class Presence {
/** /**
* The devices this presence is on * The devices this presence is on
* @type {?object} * @type {?object}
* @property {PresenceStatus} web * @property {?PresenceStatus} web The current presence in the web application
* @property {PresenceStatus} mobile * @property {?PresenceStatus} mobile The current presence in the mobile application
* @property {PresenceStatus} desktop * @property {?PresenceStatus} desktop The current presence in the desktop application
*/ */
this.clientStatus = data.client_status || null; this.clientStatus = data.client_status || null;

8
typings/index.d.ts vendored
View File

@@ -813,7 +813,7 @@ declare module 'discord.js' {
public activity: Activity; public activity: Activity;
public flags: Readonly<ActivityFlags>; public flags: Readonly<ActivityFlags>;
public status: PresenceStatus; public status: PresenceStatus;
public clientStatus: ClientPresenceStatusData; public clientStatus: ClientPresenceStatusData | null;
public readonly user: User; public readonly user: User;
public readonly member?: GuildMember; public readonly member?: GuildMember;
public equals(presence: Presence): boolean; public equals(presence: Presence): boolean;
@@ -2073,9 +2073,9 @@ declare module 'discord.js' {
type ClientPresenceStatus = 'online' | 'idle' | 'dnd'; type ClientPresenceStatus = 'online' | 'idle' | 'dnd';
interface ClientPresenceStatusData { interface ClientPresenceStatusData {
web?: ClientPresenceStatus; web?: PresenceStatus;
mobile?: ClientPresenceStatus; mobile?: PresenceStatus;
desktop?: ClientPresenceStatus; desktop?: PresenceStatus;
} }
type PartialTypes = 'USER' type PartialTypes = 'USER'