From efd52e9c9b265adedd2b94910d360403a0e3d1f3 Mon Sep 17 00:00:00 2001 From: ITOH <72305210+itohatweb@users.noreply.github.com> Date: Sun, 2 May 2021 20:51:39 +0200 Subject: [PATCH] fix: thread channels have own prop --- src/structures/guild.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/structures/guild.ts b/src/structures/guild.ts index 562440c25..3d36eb213 100644 --- a/src/structures/guild.ts +++ b/src/structures/guild.ts @@ -118,6 +118,7 @@ export async function createDiscordenoGuild( memberCount = 0, voiceStates = [], channels = [], + threads = [], presences = [], joinedAt = "", emojis, @@ -131,7 +132,7 @@ export async function createDiscordenoGuild( ), ); - await Promise.all(channels.map(async (channel) => { + await Promise.all([...channels, ...threads].map(async (channel) => { const discordenoChannel = await structures.createDiscordenoChannel( channel, rest.id,