Category isnt private ?

const eventCategory = await interaction.guild.channels.create({
name: ":dagger: " + interaction.options.getString("event-name") + ":dagger:",
type: ChannelType.GuildCategory,
pemissionOverwrites: [
{
id: playerRole.id,
allow: [PermissionFlagsBits.ViewChannel],
},
{
id: organizerRole.id,
allow: [PermissionFlagsBits.ViewChannel],
},
{
id: interaction.guild.roles.everyone.id,
deny: [PermissionFlagsBits.ViewChannel],
},
],
});
const eventCategory = await interaction.guild.channels.create({
name: ":dagger: " + interaction.options.getString("event-name") + ":dagger:",
type: ChannelType.GuildCategory,
pemissionOverwrites: [
{
id: playerRole.id,
allow: [PermissionFlagsBits.ViewChannel],
},
{
id: organizerRole.id,
allow: [PermissionFlagsBits.ViewChannel],
},
{
id: interaction.guild.roles.everyone.id,
deny: [PermissionFlagsBits.ViewChannel],
},
],
});
3 Replies
d.js toolkit
d.js toolkit17mo 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!
Kinect3000
Kinect300017mo ago
permissionOverwrites is misspelled
shullex
shullexOP17mo ago
Oh my fu**ing god. Thanks a lot. Will check then mark as solved.
Want results from more Discord servers?
Add your server