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
This commit is contained in:
didinele
2020-02-07 19:46:03 +02:00
committed by GitHub
parent 3f039016af
commit fe7df708e4

5
typings/index.d.ts vendored
View File

@@ -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;