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?![](https://utfs.io/f/cbb87b2c-9826-4f84-ab78-f6a4251946b0-1nq2cb.png)
Solution:Jump to solution
Because you're not reading the docs properly. It is in the second parameter, not the first.
3 Replies
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
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
Because you're not reading the docs properly. It is in the second parameter, not the first.