mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 20:43:30 +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
|
* 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
8
typings/index.d.ts
vendored
@@ -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'
|
||||||
|
|||||||
Reference in New Issue
Block a user