* 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 -2
View File
@@ -49,12 +49,12 @@ export interface ReadyPrivateChannel {
export type GuildOrUnavailable =
| { id: string; unavailable: boolean }
| (Guild & { joined_at?: Date; unavailable: boolean });
| (Guild & { joined_at?: Date; unavailable: undefined });
const guildIsAvailable = (
guild: GuildOrUnavailable,
): guild is Guild & { joined_at: Date; unavailable: false } => {
return guild.unavailable == false;
return guild.unavailable != true;
};
export interface IReadyGuildDTO {