Missing permission on creating channel

Bot is able to create category but fails when creating channel. I have give manage Channel permission to bot. here is apiece of code which i use
await guild.channels.create({
name: "Online Players: " + details.online,
type: ChannelType.GuildText,
parent: catogory.id,
permissionOverwrites: [
{
id: m.guild.id,
deny: [],
},
],
});
await guild.channels.create({
name: "Online Players: " + details.online,
type: ChannelType.GuildText,
parent: catogory.id,
permissionOverwrites: [
{
id: m.guild.id,
deny: [],
},
],
});
6 Replies
d.js toolkit
d.js toolkit9mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
monbrey
monbrey9mo ago
Are you creating a category it cant view?
xx_lavaboy_xx123
counter channels are api spam 😠 😠 😠
DARK DEATH
DARK DEATHOP9mo ago
let catogory = await guild.channels.create({ name: "📊Minecraft Server Status📊", type: ChannelType.GuildCategory, permissionOverwrites: [ { id: m.guild.id, deny: [PermissionFlagsBits.ManageChannels], }, ], position: 0, });
monbrey
monbrey9mo ago
okay, yes You denied everyone in the guild (including your bot) permission to manage that category
DARK DEATH
DARK DEATHOP9mo ago
ok
Want results from more Discord servers?
Add your server