mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
fix: thread channels have own prop
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user