mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
feat(Presence): add clientStatus (#3056)
This commit is contained in:
14
typings/index.d.ts
vendored
14
typings/index.d.ts
vendored
@@ -968,7 +968,8 @@ declare module 'discord.js' {
|
||||
constructor(data: object, client: Client);
|
||||
public readonly client: Client;
|
||||
public game: Game;
|
||||
public status: 'online' | 'offline' | 'idle' | 'dnd';
|
||||
public status: PresenceStatusData;
|
||||
public clientStatus: ClientPresenceStatusData;
|
||||
public equals(presence: Presence): boolean;
|
||||
}
|
||||
|
||||
@@ -2033,7 +2034,16 @@ declare module 'discord.js' {
|
||||
} | null;
|
||||
};
|
||||
|
||||
type PresenceStatus = 'online' | 'idle' | 'invisible' | 'dnd';
|
||||
type ClientPresenceStatus = 'online' | 'idle' | 'dnd';
|
||||
|
||||
type PresenceStatus = ClientPresenceStatus | 'invisible' ;
|
||||
type PresenceStatusData = ClientPresenceStatus | 'offline';
|
||||
|
||||
type ClientPresenceStatusData = {
|
||||
web?: ClientPresenceStatus;
|
||||
mobile?: ClientPresenceStatus;
|
||||
desktop?: ClientPresenceStatus;
|
||||
};
|
||||
|
||||
type RateLimitInfo = {
|
||||
requestLimit: number;
|
||||
|
||||
Reference in New Issue
Block a user