mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 17:13:31 +01:00
chore: deps
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
import { EventEmitter } from 'node:events';
|
||||
import type { AgentOptions } from 'node:https';
|
||||
import type Collection from '@discordjs/collection';
|
||||
import type { RequestInit, Response } from 'node-fetch';
|
||||
import { CDN } from './CDN';
|
||||
import {
|
||||
HandlerRequestData,
|
||||
@@ -8,12 +11,9 @@ import {
|
||||
RequestMethod,
|
||||
RouteLike,
|
||||
} from './RequestManager';
|
||||
import { DefaultRestOptions, RESTEvents } from './utils/constants';
|
||||
import type { AgentOptions } from 'node:https';
|
||||
import type { RequestInit, Response } from 'node-fetch';
|
||||
import type { HashData } from './RequestManager';
|
||||
import type Collection from '@discordjs/collection';
|
||||
import type { IHandler } from './handlers/IHandler';
|
||||
import { DefaultRestOptions, RESTEvents } from './utils/constants';
|
||||
|
||||
/**
|
||||
* Options to be passed when creating the REST instance
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import Collection from '@discordjs/collection';
|
||||
import FormData from 'form-data';
|
||||
import { DiscordSnowflake } from '@sapphire/snowflake';
|
||||
import { EventEmitter } from 'node:events';
|
||||
import { Agent as httpsAgent } from 'node:https';
|
||||
import { Agent as httpAgent } from 'node:http';
|
||||
import { Agent as httpsAgent } from 'node:https';
|
||||
import Collection from '@discordjs/collection';
|
||||
import { DiscordSnowflake } from '@sapphire/snowflake';
|
||||
import FormData from 'form-data';
|
||||
import type { RequestInit, BodyInit } from 'node-fetch';
|
||||
import type { RESTOptions, RestEvents } from './REST';
|
||||
import type { IHandler } from './handlers/IHandler';
|
||||
import { SequentialHandler } from './handlers/SequentialHandler';
|
||||
import type { RESTOptions, RestEvents } from './REST';
|
||||
import { DefaultRestOptions, DefaultUserAgent, RESTEvents } from './utils/constants';
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { InternalRequest } from '../RequestManager';
|
||||
import type { RequestBody } from './DiscordAPIError';
|
||||
import type { InternalRequest } from '../RequestManager';
|
||||
|
||||
/**
|
||||
* Represents a HTTP error
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
import { setTimeout as sleep } from 'node:timers/promises';
|
||||
import { AsyncQueue } from '@sapphire/async-queue';
|
||||
import fetch, { RequestInit, Response } from 'node-fetch';
|
||||
import type { IHandler } from './IHandler';
|
||||
import type { RateLimitData } from '../REST';
|
||||
import type { HandlerRequestData, RequestManager, RouteData } from '../RequestManager';
|
||||
import { DiscordAPIError, DiscordErrorData, OAuthErrorData } from '../errors/DiscordAPIError';
|
||||
import { HTTPError } from '../errors/HTTPError';
|
||||
import { RateLimitError } from '../errors/RateLimitError';
|
||||
import type { HandlerRequestData, RequestManager, RouteData } from '../RequestManager';
|
||||
import { RESTEvents } from '../utils/constants';
|
||||
import { hasSublimit, parseResponse } from '../utils/utils';
|
||||
import type { RateLimitData } from '../REST';
|
||||
import type { IHandler } from './IHandler';
|
||||
|
||||
/* Invalid request limiting is done on a per-IP basis, not a per-token basis.
|
||||
* The best we can do is track invalid counts process-wide (on the theory that
|
||||
|
||||
Reference in New Issue
Block a user