Skip to main content

Interface: CommandChatInputRegisterShortcut

Properties

behaviorWhenNotIdentical

Optional behaviorWhenNotIdentical: RegisterBehavior

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

default RegisterBehavior.LogToConsole

Defined in

projects/framework/src/lib/structures/Command.ts:705


defaultPermission

Optional defaultPermission: boolean

Sets the defaultPermission field for the chat input command

:::warn

This will be deprecated in the future for Discord's new permission system

:::

Defined in

projects/framework/src/lib/structures/Command.ts:737


guildIds

Optional guildIds: string[]

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

tip

If you want to register both guild and global chat input commands, please read the guide about registering application commands instead.

Defined in

projects/framework/src/lib/structures/Command.ts:722


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/structures/Command.ts:727


register

register: boolean

If we should register the command, be it missing or present already

default false

Defined in

projects/framework/src/lib/structures/Command.ts:710