* 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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user