i have problem i stored all data channels and permissions in database but when i restore channels its not same position
backup.data.channels.forEach(async (channel) => {
console.log(channel.name)
setTimeout(async () => {
const parentChannel = channel.parent ? interaction.guild.channels.cache.find(c => c.name === channel.parent && c.type === ChannelType.Category) : null;
const overwrites = channel.permissionOverwrites.map((overwrite) => ({
id: overwrite.id,
allow: BigInt(overwrite.allow),
deny: BigInt(overwrite.deny),
type: overwrite.type,
}))
await interaction.guild.channels.create({ name: channel.name,
type: channel.type,
position: channel.position,
parent: channel.parent,
permissionOverwrites: overwrites,
}).catch((err) => {
console.log(err)
})
}, 2500)
})