slash command invisibile for everyone

what is syntax for slash command only visible for specific role
15 Replies
d.js toolkit
d.js toolkit5mo 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!
treble/luna
treble/luna5mo ago
there is none you as a dev cant do it server admins can
Vector
VectorOP5mo ago
yeah im dev and specially i dont know what a syntax
treble/luna
treble/luna5mo ago
there is none
you can limit the permissions
Vector
VectorOP5mo ago
settings?
chewie
chewie5mo ago
There is no syntax for it. You can only set a default permission a user needs for the command.
treble/luna
treble/luna5mo ago
but not roles
chewie
chewie5mo ago
Other than that, server admins configure everything else in the server settings.
Vector
VectorOP5mo ago
but i saw another guilds for a huge community server only admin level commands display only role members
Vector
VectorOP5mo ago
? this one
No description
d.js docs
d.js docs5mo ago
:dtypes: v10: PermissionFlagsBits read more
treble/luna
treble/luna5mo ago
'UseApplicationCommands' if thats what youre looking for
Vector
VectorOP5mo ago
anyways i got diffrent solution thank you so much for listening❤️‍🔥
No description
Amgelo
Amgelo5mo ago
go to your guild's settings (on discord), integrations, select your bot, select your command and you can modify the roles that can use it there what she meant was that you can't do that from your code or at least not the "regular" way, you'd need oauth
Vector
VectorOP5mo ago
oh that's i want i really appreciate it ❤️
No description
Want results from more Discord servers?
Add your server