© 2026 Hedgehog Software, LLC
await Promise.all( data.channels .filter( (channel) => "isThread" in channel && !channel?.isThread() ) .map(async (channel) => { if (channel.isThread()) return; return await guild.channels .create({ name: channel.name, type: channel.type, parent: channelsMap.get(channel.parentId!), permissionOverwrites: Array.from( channel.permissionOverwrites.cache.values() ).map((v) => v.type === OverwriteType.Role ? { ...v, id: rolesMap.get(v.id)! } : v ), ...... }) .catch(console.error) .then((ch) => { console.log("w"); if (!ch) return; console.log(ch.name); channelsMap.set(channel.id, ch.id); }); }) ); progress[6] = "Created all channels";
Join the Discord to ask follow-up questions and connect with the community
Support server for discord.js, a Node.js module to interact with Discord's apps API.
57,666 Members