From 086c3f0799d65c64c4e60d6370246a37a27a1eab Mon Sep 17 00:00:00 2001 From: Shubham Parihar Date: Wed, 2 Jun 2021 05:31:59 +0530 Subject: [PATCH] fix: interfaces not importing due to re-export of Snowflake (#5723) Co-authored-by: Noel --- typings/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/typings/index.d.ts b/typings/index.d.ts index 903600656ff2..ac8da4bf7b95 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -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;