Set global commands guildIds
Hello, is it possible to set globally the guilds id of all commands,
For example when developing, I want commands to be only in one server.
thank you in advance
3 Replies
it's not possible but very easily achieved manually. Simply do:
in your command files:
in another file, for example
src/lib/constants.ts
(never forget the JS basics 😉 )Thank you :)
This has been added in @sapphire/framework v4.6.0, see https://www.sapphirejs.dev/docs/Guide/commands/application-commands/application-command-registry/globally-configuring-guildids for more information.
Sapphire Framework
Globally configuring guildIds | Sapphire
Previously at Registering Chat Input Commands - guildIds we covered how to register single commands