mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
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:
@@ -77,9 +77,9 @@ class Presence {
|
||||
/**
|
||||
* The devices this presence is on
|
||||
* @type {?object}
|
||||
* @property {PresenceStatus} web
|
||||
* @property {PresenceStatus} mobile
|
||||
* @property {PresenceStatus} desktop
|
||||
* @property {?PresenceStatus} web The current presence in the web application
|
||||
* @property {?PresenceStatus} mobile The current presence in the mobile application
|
||||
* @property {?PresenceStatus} desktop The current presence in the desktop application
|
||||
*/
|
||||
this.clientStatus = data.client_status || null;
|
||||
|
||||
|
||||
8
typings/index.d.ts
vendored
8
typings/index.d.ts
vendored
@@ -813,7 +813,7 @@ declare module 'discord.js' {
|
||||
public activity: Activity;
|
||||
public flags: Readonly<ActivityFlags>;
|
||||
public status: PresenceStatus;
|
||||
public clientStatus: ClientPresenceStatusData;
|
||||
public clientStatus: ClientPresenceStatusData | null;
|
||||
public readonly user: User;
|
||||
public readonly member?: GuildMember;
|
||||
public equals(presence: Presence): boolean;
|
||||
@@ -2073,9 +2073,9 @@ declare module 'discord.js' {
|
||||
type ClientPresenceStatus = 'online' | 'idle' | 'dnd';
|
||||
|
||||
interface ClientPresenceStatusData {
|
||||
web?: ClientPresenceStatus;
|
||||
mobile?: ClientPresenceStatus;
|
||||
desktop?: ClientPresenceStatus;
|
||||
web?: PresenceStatus;
|
||||
mobile?: PresenceStatus;
|
||||
desktop?: PresenceStatus;
|
||||
}
|
||||
|
||||
type PartialTypes = 'USER'
|
||||
|
||||
Reference in New Issue
Block a user