From fe7df708e44e0280dfaf0f8e457b154781bb5140 Mon Sep 17 00:00:00 2001 From: didinele Date: Fri, 7 Feb 2020 19:46:03 +0200 Subject: [PATCH] typings: add HTTPOptions#api and export Constants as a value (#3768) * fix(typings): Export Constants correctly * fix(typings): HTTPOptions#api was missing * fix some odd indent * add semi to make CI happy uwu --- typings/index.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/typings/index.d.ts b/typings/index.d.ts index e59387f4b..07f725bce 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -372,7 +372,7 @@ declare module 'discord.js' { type AllowedImageFormat = 'webp' | 'png' | 'jpg' | 'gif'; - export interface Constants { + export const Constants: { Package: { name: string; version: string; @@ -627,7 +627,7 @@ declare module 'discord.js' { ActivityTypes: ActivityType[]; DefaultMessageNotifications: DefaultMessageNotifications[]; MembershipStates: 'INVITED' | 'ACCEPTED'; - } + }; export class DataResolver { public static resolveBase64(data: Base64Resolvable): string; @@ -2363,6 +2363,7 @@ declare module 'discord.js' { } interface HTTPOptions { + api?: string; version?: number; host?: string; cdn?: string;