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.
![](https://answer-overflow-discord-attachments.s3.amazonaws.com/1113076722666065980/image.png)
18 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
![](https://answer-overflow-discord-attachments.s3.amazonaws.com/1113077388524408874/image.png)
The roles
Can I send in here the code that creates the category and the roles?
The MODPermsDeny
![](https://answer-overflow-discord-attachments.s3.amazonaws.com/1113078171089244271/image.png)
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
![](https://answer-overflow-discord-attachments.s3.amazonaws.com/1113082134303866921/image.png)
removed the MODPermsDeny, still did not show up on Discord
Yet, it still logs correctly to the console
![](https://answer-overflow-discord-attachments.s3.amazonaws.com/1113082823105069096/image.png)
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?
Something tells me that I will have a headache fixing the code 🙃
So, downloaded the ES Linter, now is this the type of rule I need to activate? https://eslint.org/docs/latest/rules/require-atomic-updates
require-atomic-updates - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
https://eslint.org/docs/latest/rules/require-await or this? I'm not sure which rule forces me to await promisses
require-await - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
To use Typescript, what do I need to do? Change all files from .js to .ts?