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 toolkit3mo 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
monbrey3mo ago
Are you creating a category it cant view?
xx_lavaboy_xx123
counter channels are api spam 😠 😠 😠
DARK DEATH
DARK DEATH3mo 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
monbrey3mo ago
okay, yes You denied everyone in the guild (including your bot) permission to manage that category
DARK DEATH
DARK DEATH3mo ago
ok
Want results from more Discord servers?
Add your server
More Posts