mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 03:53:29 +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';
|
type AllowedImageFormat = 'webp' | 'png' | 'jpg' | 'gif';
|
||||||
|
|
||||||
export interface Constants {
|
export const Constants: {
|
||||||
Package: {
|
Package: {
|
||||||
name: string;
|
name: string;
|
||||||
version: string;
|
version: string;
|
||||||
@@ -627,7 +627,7 @@ declare module 'discord.js' {
|
|||||||
ActivityTypes: ActivityType[];
|
ActivityTypes: ActivityType[];
|
||||||
DefaultMessageNotifications: DefaultMessageNotifications[];
|
DefaultMessageNotifications: DefaultMessageNotifications[];
|
||||||
MembershipStates: 'INVITED' | 'ACCEPTED';
|
MembershipStates: 'INVITED' | 'ACCEPTED';
|
||||||
}
|
};
|
||||||
|
|
||||||
export class DataResolver {
|
export class DataResolver {
|
||||||
public static resolveBase64(data: Base64Resolvable): string;
|
public static resolveBase64(data: Base64Resolvable): string;
|
||||||
@@ -2363,6 +2363,7 @@ declare module 'discord.js' {
|
|||||||
}
|
}
|
||||||
|
|
||||||
interface HTTPOptions {
|
interface HTTPOptions {
|
||||||
|
api?: string;
|
||||||
version?: number;
|
version?: number;
|
||||||
host?: string;
|
host?: string;
|
||||||
cdn?: string;
|
cdn?: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user