mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01:00
refactor(WebSocketManager)!: remove deprecated rest option (#10998)
BREAKING CHANGE: The `rest` option in the `WebSocketManager` constructor has been removed. Pass a `fetchGatewayInformation` function instead.
This commit is contained in:
@@ -163,7 +163,7 @@ class Client extends BaseClient {
|
||||
const wsOptions = {
|
||||
...this.options.ws,
|
||||
intents: this.options.intents.bitfield,
|
||||
rest: this.rest,
|
||||
fetchGatewayInformation: () => this.rest.get(Routes.gatewayBot()),
|
||||
// Explicitly nulled to always be set using `setToken` in `login`
|
||||
token: null,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user