mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 20:43:30 +01:00
feat(WebsocketManager): retroactive token setting (#10418)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
@@ -33,7 +33,6 @@ export interface IContextFetchingStrategy {
|
||||
}
|
||||
|
||||
export async function managerToFetchingStrategyOptions(manager: WebSocketManager): Promise<FetchingStrategyOptions> {
|
||||
/* eslint-disable @typescript-eslint/unbound-method */
|
||||
const {
|
||||
buildIdentifyThrottler,
|
||||
buildStrategy,
|
||||
@@ -44,10 +43,10 @@ export async function managerToFetchingStrategyOptions(manager: WebSocketManager
|
||||
rest,
|
||||
...managerOptions
|
||||
} = manager.options;
|
||||
/* eslint-enable @typescript-eslint/unbound-method */
|
||||
|
||||
return {
|
||||
...managerOptions,
|
||||
token: manager.token,
|
||||
gatewayInformation: await manager.fetchGatewayInformation(),
|
||||
shardCount: await manager.getShardCount(),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user