Role not appearing in category after adding it to permissionOverwrites.
I'm creating this just so that I can separate my issue from the others in the #djs-help-v14.
To summarize, my bot creates a role in a function in another file, sends the id to the file that creates the category, and when I create the category, I add it the role to permissionOverwrites, but for some reason, when the category is created in Discord, it does not have the role set in permissions.
15 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.is the role you are trying to add lower than the role of the bot
Yes
The roles
Can I send in here the code that creates the category and the roles?
The MODPermsDeny
And this is the code that calls the two functions
this file is called when button in interaction is pressed
can you try removing the modeprmsdeny and see if that does anything
Ok, I will try that in a sec
Did not solve
removed the MODPermsDeny, still did not show up on Discord
Yet, it still logs correctly to the console
Makes sense. Even though I'm not new to coding, I'm new to this type of "bulk coding"
Don't know if what I just said makes sense XD
How would I fix it then?