diff --git a/src/handlers/channels/THREAD_LIST_SYNC.ts b/src/handlers/channels/THREAD_LIST_SYNC.ts index 4adc5d695..9f400859c 100644 --- a/src/handlers/channels/THREAD_LIST_SYNC.ts +++ b/src/handlers/channels/THREAD_LIST_SYNC.ts @@ -20,7 +20,7 @@ export async function handleThreadListSync(data: DiscordGatewayPayload) { ); eventHandlers.threadListSync?.( - new Collection(threads.map((t) => [t.id, t])), + new Collection(threads.map((t) => [t.id, channelToThread(t)])), payload.members.map((member) => threadMemberModified(member)), snowflakeToBigint(payload.guildId) ); diff --git a/src/structures/channel.ts b/src/structures/channel.ts index c39606354..226105756 100644 --- a/src/structures/channel.ts +++ b/src/structures/channel.ts @@ -110,8 +110,6 @@ export async function createDiscordenoChannel(data: Channel, guildId?: bigint) { (Object.keys(rest) as (keyof typeof rest)[]).forEach((key) => { eventHandlers.debug?.("loop", `Running forEach loop in createDiscordenoChannel function.`); - if (key === "threadMetadata") return; - props[key] = createNewProp( CHANNEL_SNOWFLAKES.includes(key) ? (rest[key] ? snowflakeToBigint(rest[key] as string) : undefined) : rest[key] );