CommandBuilderOptions
interface in meocord/interface Since 4.1.0
interface CommandBuilderOptionsWhere a command @CommandBuilder describes is registered, in place of the configured scope.
Members
guilds
guilds?: (string | undefined)[]The servers this command is registered to, in place of the configured scope. A command whose list is empty after dropping blank ids is not registered at all, rather than falling back to global. Under a development server, it goes there with every other command.
A builder that extends another and gives no guilds inherits its base's, with a warning when it is decorated: declare
guilds on the subclass to keep them. The next major version (5.0) registers such a builder's command in the
configured scope.
Default: the configured scope, or the guilds of the builder it extends
See also
- CommandBuilder