mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00: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:
parent
97c196ca6a
commit
5d10585af8
2 changed files with 7 additions and 7 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Reference in a new issue