ContextMenuCommandBuilder Permissions
I'm trying to add a User Command, and the permisisons through PermissionFlagsBits but I get an error.
Here is the code snippet:
And the error output:
discord.js v14.15.3 and node v20.11.1
5 Replies
- 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!From builders:
Here is the entire code:
You should import it from
discord.js
and all your builders too
discord.js
exports every package like builders in itdiscord.js includes multiple sub-packages, installing these separately can mess with internal code:
that helped, thanks o7