I need help

Is it possible to check for perms before using the sub commands
6 Replies
d.js toolkit
d.js toolkit4mo ago
- 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 OP
Mark
Mark4mo ago
You'd have to check the member's permissions from the received interaction, subcommands don't have separate permissions from the base command
d.js docs
d.js docs4mo ago
:property: CommandInteraction#memberPermissions @14.15.3 The permissions of the member, if one exists, in the channel this interaction was executed in
LuxyDev4157
LuxyDev4157OP4mo ago
ok cause i was wondering as i have a warning sub commands but i wanna make list public to use
Mark
Mark4mo ago
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
LuxyDev4157
LuxyDev4157OP4mo ago
😦 thanks for your help
Want results from more Discord servers?
Add your server