Channel not being created
Bot is not rate limited.
The progress[6] gets changed, but nothing is logged. I can also confirm that there are channels in data.channels
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";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";The progress[6] gets changed, but nothing is logged. I can also confirm that there are channels in data.channels