* 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
+1 -1
View File
@@ -161,7 +161,7 @@ router.patch(
const data = guild.toJSON();
// TODO: guild hashes
// TODO: fix vanity_url_code, template_id
delete data.vanity_url_code;
// delete data.vanity_url_code;
delete data.template_id;
await Promise.all([