fix: interfaces not importing due to re-export of Snowflake (#5723)

Co-authored-by: Noel <icrawltogo@gmail.com>
This commit is contained in:
Shubham Parihar
2021-06-02 05:31:59 +05:30
committed by GitHub
parent 53d952a4ce
commit 086c3f0799

6
typings/index.d.ts vendored
View File

@@ -69,7 +69,7 @@ declare module 'discord.js' {
APIMessage as RawMessage,
APIOverwrite as RawOverwrite,
APIRole as RawRole,
Snowflake,
Snowflake as APISnowflake,
} from 'discord-api-types/v8';
import { EventEmitter } from 'events';
import { PathLike } from 'fs';
@@ -78,8 +78,6 @@ declare module 'discord.js' {
export const version: string;
export { Snowflake };
//#region Classes
export class Activity {
@@ -3607,6 +3605,8 @@ declare module 'discord.js' {
execArgv?: string[];
}
type Snowflake = APISnowflake;
interface SplitOptions {
maxLength?: number;
char?: string;