I need help

Is it possible to check for perms before using the sub commands
6 Replies
d.js toolkit
d.js toolkit6mo 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
Mark6mo 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 docs6mo ago
:property: CommandInteraction#memberPermissions @14.15.3 The permissions of the member, if one exists, in the channel this interaction was executed in
LuxyDev4157
LuxyDev4157OP6mo ago
ok cause i was wondering as i have a warning sub commands but i wanna make list public to use
Mark
Mark6mo 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
LuxyDev4157OP6mo ago
😦 thanks for your help

Did you find this page helpful?