mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 19:28:17 +00:00
fix: thread channels have own prop
This commit is contained in:
@@ -118,6 +118,7 @@ export async function createDiscordenoGuild(
|
|||||||
memberCount = 0,
|
memberCount = 0,
|
||||||
voiceStates = [],
|
voiceStates = [],
|
||||||
channels = [],
|
channels = [],
|
||||||
|
threads = [],
|
||||||
presences = [],
|
presences = [],
|
||||||
joinedAt = "",
|
joinedAt = "",
|
||||||
emojis,
|
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(
|
const discordenoChannel = await structures.createDiscordenoChannel(
|
||||||
channel,
|
channel,
|
||||||
rest.id,
|
rest.id,
|
||||||
|
|||||||
Reference in New Issue
Block a user