How can I add a slashcommand only for a specific Guild?

I want to create a slashcommand only in a specific guild. I tried doing so in the registery.registerChatInputCommand but it wont let me add a guild, guild_id parameter. any ideas?
Solution:
Because you're not reading the docs properly. It is in the second parameter, not the first.
Jump to solution
3 Replies
Sawako
Sawako2y ago
Sapphire Framework
Registering Chat Input Commands | Sapphire
To register a Chat Input Command (also known as a Slash Command) with Discord, you need to acquire an application
chillihero
chillihero2y ago
I die try to pass a guildIDs parameter because of this, but still received a error that this is not applicable to the type
Solution
Favna
Favna2y ago
Because you're not reading the docs properly. It is in the second parameter, not the first.
Want results from more Discord servers?
Add your server