mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
refactor!: remove polyfillDispose (#10776)
BREAKING CHANGE: The `polyfillDispose` function has been removed
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import type { REST } from '@discordjs/rest';
|
||||
import { range, type Awaitable } from '@discordjs/util';
|
||||
import { polyfillDispose } from '@discordjs/util';
|
||||
import { AsyncEventEmitter } from '@vladfrangu/async_event_emitter';
|
||||
import {
|
||||
Routes,
|
||||
@@ -18,9 +17,6 @@ import type { IIdentifyThrottler } from '../throttling/IIdentifyThrottler.js';
|
||||
import { DefaultWebSocketManagerOptions, type CompressionMethod, type Encoding } from '../utils/constants.js';
|
||||
import type { WebSocketShardDestroyOptions, WebSocketShardEvents } from './WebSocketShard.js';
|
||||
|
||||
// We put this here because in index.ts WebSocketManager seems to be outputted before polyfillDispose() is called from tsup.
|
||||
polyfillDispose();
|
||||
|
||||
/**
|
||||
* Represents a range of shard ids
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user