diff --git a/src/websocket/discord/shard.ts b/src/websocket/discord/shard.ts index 007de23..182df7e 100644 --- a/src/websocket/discord/shard.ts +++ b/src/websocket/discord/shard.ts @@ -301,7 +301,7 @@ export class Shard { clearTimeout(this.connectionTimeout); this.connectionTimeout = undefined; if (hasIntent(this.options.intents, 'Guilds')) { - this.pendingGuilds = new Set(...packet.d.guilds.map(guild => guild.id)); + this.pendingGuilds = new Set(packet.d.guilds.map(guild => guild.id)); } this.data.resume_gateway_url = packet.d.resume_gateway_url;