mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 14:02:02 +00: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:
parent
3f039016af
commit
fe7df708e4
1 changed files with 3 additions and 2 deletions
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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue