From a0d93fb252803c5fded8723d092ae0f394d1b40b Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Sat, 29 Jul 2023 16:59:21 +1000 Subject: * call toJSON of keys in gateway when using erlpack * dont send bitrate/etc as null when should be undefined * set user flags to number instead of string * send empty 'threads' in identify when not using new state v2 --- src/gateway/opcodes/Identify.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gateway') diff --git a/src/gateway/opcodes/Identify.ts b/src/gateway/opcodes/Identify.ts index 837ae351..0f91df3e 100644 --- a/src/gateway/opcodes/Identify.ts +++ b/src/gateway/opcodes/Identify.ts @@ -265,6 +265,8 @@ export async function onIdentify(this: WebSocket, data: Payload) { return { ...member.guild.toJSON(), joined_at: member.joined_at, + + threads: [], }; }); -- cgit 1.5.1