summary refs log tree commit diff
path: root/src/gateway/opcodes/Identify.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/gateway/opcodes/Identify.ts')
-rw-r--r--src/gateway/opcodes/Identify.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gateway/opcodes/Identify.ts b/src/gateway/opcodes/Identify.ts

index d3e8f25c..9b2620e7 100644 --- a/src/gateway/opcodes/Identify.ts +++ b/src/gateway/opcodes/Identify.ts
@@ -785,12 +785,11 @@ export async function onIdentify(this: WebSocket, data: Payload) { // If we're a bot user, send GUILD_CREATE for each unavailable guild // TODO: check if bot has permission to view some of these based on intents (i.e. GUILD_MEMBERS, GUILD_PRESENCES, GUILD_VOICE_STATES) - await Promise.all( pending_guilds.map((x) => { //Even with the GUILD_MEMBERS intent, the bot always receives just itself as the guild members const botMemberObject = members.find((member) => member.guild_id === x.id); - //Object.assign(x, { threads: [] }); + return Send(this, { op: OPCODES.Dispatch, t: EVENTEnum.GuildCreate,