From 38a14f723a9537883319b492a785b2e6751a644b Mon Sep 17 00:00:00 2001 From: Shubham Parihar Date: Tue, 1 Jun 2021 20:23:51 +0530 Subject: [PATCH 1/2] fix: interfaces not importing due to re-export of Snowflake --- typings/index.d.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/typings/index.d.ts b/typings/index.d.ts index e7026861c412..f39e9b1fc7e0 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -69,7 +69,6 @@ declare module 'discord.js' { APIMessage as RawMessage, APIOverwrite as RawOverwrite, APIRole as RawRole, - Snowflake, } from 'discord-api-types/v8'; import { EventEmitter } from 'events'; import { PathLike } from 'fs'; @@ -78,8 +77,6 @@ declare module 'discord.js' { export const version: string; - export { Snowflake }; - //#region Classes export class Activity { @@ -3615,6 +3612,8 @@ declare module 'discord.js' { execArgv?: string[]; } + type Snowflake = `${bigint}`; + interface SplitOptions { maxLength?: number; char?: string; From 90982549063fe0b0d4c0b95e2d1d121bdd9285ed Mon Sep 17 00:00:00 2001 From: Noel Date: Wed, 2 Jun 2021 01:00:59 +0100 Subject: [PATCH 2/2] Update index.d.ts --- typings/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/typings/index.d.ts b/typings/index.d.ts index f39e9b1fc7e0..e060aec65553 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -69,6 +69,7 @@ declare module 'discord.js' { APIMessage as RawMessage, APIOverwrite as RawOverwrite, APIRole as RawRole, + Snowflake as APISnowflake, } from 'discord-api-types/v8'; import { EventEmitter } from 'events'; import { PathLike } from 'fs'; @@ -3612,7 +3613,7 @@ declare module 'discord.js' { execArgv?: string[]; } - type Snowflake = `${bigint}`; + type Snowflake = APISnowflake; interface SplitOptions { maxLength?: number;