Can I set the slash only for those who have a certain role?

Is there any way for this to work and the slash only appears for those who have the defined position?
No description
7 Replies
d.js toolkit
d.js toolkit2mo 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!
darp
darp2mo ago
bots cannot set that
darp
darp2mo ago
discord.js
discord.js
discord.js is a powerful Node.js module that allows you to interact with the Discord API very easily. It takes a much more object-oriented approach than most other JS Discord libraries, making your bot's code significantly tidier and easier to comprehend.
Joãozinho
Joãozinho2mo ago
setting by users or carog id is not possible in any way?
darp
darp2mo ago
well you can only via oauth2/discord ui integrations > <bot> > commands
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Syjalo
Syjalo2mo ago
Server admins can set it in Server Settings > Integrations > The Bot > The Command > Permissions