mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
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:
5
typings/index.d.ts
vendored
5
typings/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user