let myRole = message.guild.roles.cache.find(role => role.name === "Admin");
message.guild.channels.create(
channelName2,
{
type: "GUILD_TEXT",
permissionOverwrites: [
{
id: myRole.id,
allow: ["SEND_MESSAGES", "VIEW_CHANNEL", "READ_MESSAGE_HISTORY"],
},
{
id: myRole.id,
deny: ["VIEW_CHANNEL"]
}
]
}
Bot creates the text channel but has no permissions edited and it ignored almost whatever I write in “id: XXXXXX”