feat(Presence): add clientStatus (#3056)

This commit is contained in:
SpaceEEC
2019-02-12 10:10:33 +01:00
committed by GitHub
parent 5272cec6c8
commit a2a0c05102
2 changed files with 38 additions and 10 deletions

14
typings/index.d.ts vendored
View File

@@ -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;