summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMathMan05 <mathmanrm@gmail.com>2026-03-04 16:22:50 -0600
committerRory& <root@rory.gay>2026-03-20 16:31:32 +0100
commit3126b4bdf0accfc493cf8e83d1472cac0c5252b4 (patch)
tree2892db3555a5a3d4f4c179a096b195db878551e4 /src
parentinvert if (diff)
downloadserver-ts-3126b4bdf0accfc493cf8e83d1472cac0c5252b4.tar.xz
remove weird debugging
Diffstat (limited to 'src')
-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 cfa2b497..ce0bd8ef 100644 --- a/src/gateway/opcodes/Identify.ts +++ b/src/gateway/opcodes/Identify.ts
@@ -780,12 +780,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,