fix: thread channels have own prop

This commit is contained in:
ITOH
2021-05-02 20:51:39 +02:00
parent 5e747a8cdf
commit efd52e9c9b
+2 -1
View File
@@ -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,