Skip to main content

Interface: RegisterOptions

ApplicationCommandRegistry.RegisterOptions

Properties

behaviorWhenNotIdentical

Optional behaviorWhenNotIdentical: Overwrite | LogToConsole | VerboseOverwrite

Specifies what we should do when the command is present, but not identical with the data you provided

Default

ApplicationCommandRegistries.getDefaultBehaviorWhenNotIdentical()

Defined in

projects/framework/src/lib/utils/application-commands/ApplicationCommandRegistry.ts:603


guildIds

Optional guildIds: string[]

If this is specified, the application commands will only be registered for these guild ids.

Defined in

projects/framework/src/lib/utils/application-commands/ApplicationCommandRegistry.ts:593


idHints

Optional idHints: string[]

Specifies a list of command ids that we should check in the event of a name mismatch

Default

[]

Defined in

projects/framework/src/lib/utils/application-commands/ApplicationCommandRegistry.ts:608


registerCommandIfMissing

Optional registerCommandIfMissing: boolean

If we should register the command when it is missing

Default

true

Defined in

projects/framework/src/lib/utils/application-commands/ApplicationCommandRegistry.ts:598