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:753


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:785


descriptionLocalizations

Optional descriptionLocalizations: Partial<Record<"en-US" | "en-GB" | "bg" | "zh-CN" | "zh-TW" | "hr" | "cs" | "da" | "nl" | "fi" | "fr" | "de" | "el" | "hi" | "hu" | "it" | "ja" | "ko" | "lt" | "no" | "pl" | "pt-BR" | "ro" | "ru" | "es-ES" | "sv-SE" | "th" | "tr" | "uk" | "vi", string>>

Sets the descriptionLocalizations for the chat input command

Defined in

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


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:770


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:775


nameLocalizations

Optional nameLocalizations: Partial<Record<"en-US" | "en-GB" | "bg" | "zh-CN" | "zh-TW" | "hr" | "cs" | "da" | "nl" | "fi" | "fr" | "de" | "el" | "hi" | "hu" | "it" | "ja" | "ko" | "lt" | "no" | "pl" | "pt-BR" | "ro" | "ru" | "es-ES" | "sv-SE" | "th" | "tr" | "uk" | "vi", string>>

Sets the nameLocalizations for the chat input command

Defined in

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


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:758