Default guildId for all application commands
Is it possible to set a default guildId for all application commands?
5 Replies
No, but you can just define a constant in a file somewhere then import it and use that.
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
If I'm understanding correctly about this update,
If I put
guildIds: []
in one command K
, and no such property in other commands, command K
will not be registered in any guild right?K
will be registered globallyUnderstood!