* 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
This commit is contained in:
Madeline
2023-07-29 16:59:21 +10:00
parent a5a6321156
commit a0d93fb252
7 changed files with 35 additions and 4 deletions
+2
View File
@@ -265,6 +265,8 @@ export async function onIdentify(this: WebSocket, data: Payload) {
return {
...member.guild.toJSON(),
joined_at: member.joined_at,
threads: [],
};
});