summary refs log tree commit diff
path: root/src/util
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-01-29 20:37:08 +0100
committerRory& <root@rory.gay>2026-01-29 20:37:08 +0100
commitb97e9e03a0ec42e05eaec0b830a0018d650d0c8e (patch)
tree5c0c665310aefbb992ab24357446ffd4473bb40d /src/util
parentChannel/thread util methods ported from #876 (diff)
downloadserver-ts-b97e9e03a0ec42e05eaec0b830a0018d650d0c8e.tar.xz
READY changes for threads ported from #876
Diffstat (limited to 'src/util')
-rw-r--r--src/util/dtos/ReadyGuildDTO.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/dtos/ReadyGuildDTO.ts b/src/util/dtos/ReadyGuildDTO.ts

index 3ea9f1b8..a9bbd331 100644 --- a/src/util/dtos/ReadyGuildDTO.ts +++ b/src/util/dtos/ReadyGuildDTO.ts
@@ -34,9 +34,9 @@ export interface ReadyPrivateChannel { type: ChannelType.DM | ChannelType.GROUP_DM; } -export type GuildOrUnavailable = { id: string; unavailable: boolean } | (Guild & { joined_at?: Date; unavailable: undefined }); +export type GuildOrUnavailable = { id: string; unavailable: boolean } | (Guild & { joined_at?: Date; unavailable: undefined; threads: Channel[] }); -const guildIsAvailable = (guild: GuildOrUnavailable): guild is Guild & { joined_at: Date; unavailable: false } => { +const guildIsAvailable = (guild: GuildOrUnavailable): guild is Guild & { joined_at: Date; unavailable: false; threads: Channel[] } => { return guild.unavailable != true; }; @@ -215,7 +215,7 @@ export class ReadyGuildDTO implements IReadyGuildDTO { this.roles = guild.roles.map((x) => x.toJSON()); this.stage_instances = []; this.stickers = guild.stickers; - this.threads = []; + this.threads = guild.threads; this.version = "1"; // ?????? this.guild_hashes = {}; this.joined_at = guild.joined_at;