Slash Command Guild Permission Overwrite
Hello there. I'll make this quick. In sort, I am making a command that applies slash command permission overwrites to servers based on a file it reads. Now, I did manage to write everything that sets up the properties object to be applied to the
guild.commands.permissions.set()
function, but for some reason, it just does not accept it. Here is an overview of the important chunks of code:
The error I get is the following:
I am unsure whether I am doing something wrong or this is a TS issue. If anyone knows how I could solve this, then it would be very helpful. Thank you for your time and help, I truly appreciate it.4 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!Here is the entire function if it is of any help:
You're missing a type property.
ApplicationCommandPermissions
The object returned when fetching permissions for an application command.