slash command invisibile for everyone

what is syntax for slash command only visible for specific role
15 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!
treble/luna
treble/luna4mo ago
there is none you as a dev cant do it server admins can
Vector
VectorOP4mo ago
yeah im dev and specially i dont know what a syntax
treble/luna
treble/luna4mo ago
there is none
you can limit the permissions
Vector
VectorOP4mo ago
settings?
chewie
chewie4mo ago
There is no syntax for it. You can only set a default permission a user needs for the command.
treble/luna
treble/luna4mo ago
but not roles
chewie
chewie4mo ago
Other than that, server admins configure everything else in the server settings.
Vector
VectorOP4mo ago
but i saw another guilds for a huge community server only admin level commands display only role members
Vector
VectorOP4mo ago
? this one
No description
d.js docs
d.js docs4mo ago
:dtypes: v10: PermissionFlagsBits read more
treble/luna
treble/luna4mo ago
'UseApplicationCommands' if thats what youre looking for
Vector
VectorOP4mo ago
anyways i got diffrent solution thank you so much for listening❤️‍🔥
No description
Amgelo
Amgelo4mo 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
VectorOP4mo ago
oh that's i want i really appreciate it ❤️
No description
Want results from more Discord servers?
Add your server