typing: fix import class missing prop

This commit is contained in:
March 7th 2022-11-19 23:26:38 +07:00
parent 8768b04eaf
commit 91d9a31761

12
typings/index.d.ts vendored
View File

@ -161,13 +161,13 @@ import {
// @ts-ignore // @ts-ignore
//#region Classes //#region Classes
export abstract class SessionManager extends CachedManager { export class SessionManager extends CachedManager {
constructor(client: Client, iterable?: Iterable<unknown>); constructor(client: Client, iterable?: Iterable<unknown>);
public fetch(): Promise<SessionManager>; public fetch(): Promise<SessionManager>;
public logoutAllDevices(mfaCode?: string): Promise<undefined>; public logoutAllDevices(mfaCode?: string): Promise<undefined>;
} }
export abstract class Session extends Base { export class Session extends Base {
constructor(client: Client); constructor(client: Client);
public id?: string; public id?: string;
public clientInfo?: SessionClientInfo; public clientInfo?: SessionClientInfo;
@ -182,7 +182,7 @@ export interface SessionClientInfo {
os?: string; os?: string;
} }
export abstract class DiscordAuthWebsocket extends EventEmitter { export class DiscordAuthWebsocket extends EventEmitter {
constructor(options?: DiscordAuthWebsocketOptions); constructor(options?: DiscordAuthWebsocketOptions);
public fingerprint?: string; public fingerprint?: string;
public heartbeatInterval?: number; public heartbeatInterval?: number;
@ -215,7 +215,7 @@ export interface RichButton {
url: string; url: string;
} }
export abstract class RichPresence { export class RichPresence {
public constructor(client?: Client, data?: object, IPC?: boolean); public constructor(client?: Client, data?: object, IPC?: boolean);
public application_id: Snowflake | null; public application_id: Snowflake | null;
public assets: RichPresenceAssets | null; public assets: RichPresenceAssets | null;
@ -265,7 +265,7 @@ export interface ExternalAssets {
external_asset_path: string; external_asset_path: string;
} }
export abstract class SpotifyRPC extends RichPresence { export class SpotifyRPC extends RichPresence {
public constructor(client: Client, data?: object); public constructor(client: Client, data?: object);
public application_id: Snowflake | null; public application_id: Snowflake | null;
public client: Client; public client: Client;
@ -299,7 +299,7 @@ export abstract class SpotifyRPC extends RichPresence {
public setSongId(id: string): this; public setSongId(id: string): this;
} }
export abstract class CustomStatus { export class CustomStatus {
public constructor(data?: object); public constructor(data?: object);
public emoji: EmojiIdentifierResolvable; public emoji: EmojiIdentifierResolvable;
public state: string; public state: string;