I need help
Is it possible to check for perms before using the sub commands
6 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!
- ✅
Marked as resolved by OPYou'd have to check the member's permissions from the received interaction, subcommands don't have separate permissions from the base command
:property: CommandInteraction#memberPermissions
@14.15.3
The permissions of the member, if one exists, in the channel this interaction was executed inok cause i was wondering as i have a warning sub commands but i wanna make list public to use
It's all or nothing in terms of base usability in the client, then you have to check the permissions after for what you want to limit
😦 thanks for your help