mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 10:33:30 +01:00
refactor(REST): remove double classing (#9722)
* refactor(REST): remove double classing BREAKING CHANGE: `REST` and `RequestManager` have been combined, most of the properties, methods, and events from both classes can now be found on `REST` BREAKING CHANGE: `REST#raw` has been removed in favor of `REST#queueRequest` BREAKING CHANGE: `REST#getAgent` has been removed in favor of `REST#agent` * chore: update for /rest changes
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import type { InternalRequest, RawFile } from '../RequestManager.js';
|
||||
import type { InternalRequest, RawFile } from '../utils/types.js';
|
||||
|
||||
interface DiscordErrorFieldInformation {
|
||||
code: string;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { InternalRequest } from '../RequestManager.js';
|
||||
import type { InternalRequest } from '../utils/types.js';
|
||||
import type { RequestBody } from './DiscordAPIError.js';
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { RateLimitData } from '../REST.js';
|
||||
import type { RateLimitData } from '../utils/types.js';
|
||||
|
||||
export class RateLimitError extends Error implements RateLimitData {
|
||||
public timeToReset: number;
|
||||
|
||||
Reference in New Issue
Block a user