mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 20:13:30 +01:00
fix(WebSocketManager): heartbeat event had outdated types (#10417)
This commit is contained in:
@@ -28,7 +28,6 @@ export class SimpleShardingStrategy implements IShardingStrategy {
|
||||
const strategy = new SimpleContextFetchingStrategy(this.manager, strategyOptions);
|
||||
const shard = new WebSocketShard(strategy, shardId);
|
||||
for (const event of Object.values(WebSocketShardEvents)) {
|
||||
// @ts-expect-error Event props can't be resolved properly, but they are correct
|
||||
shard.on(event, (...args) => this.manager.emit(event, ...args, shardId));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user