Slash command for 1 user?

Is it possible to make a slash command visible to only 1 user? I basicly want to add a restart command however I don't want others servers the bot is in to see this too. Can i make it only for me? If not, how should i implement this then?
5 Replies
d.js toolkit
d.js toolkit2y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
Syjalo
Syjalo2y ago
You can register the command to your development (support) server and set the permission. Server settings > Interactions > The bot > Commands > Permissions
Duff
DuffOP2y ago
So basicly I would combine using global commands and guild commands?
Syjalo
Syjalo2y ago
Yes
Duff
DuffOP2y ago
aight ty!
Want results from more Discord servers?
Add your server