Skip to content

SlashCommandConfig

Defined in: packages/platform-discord/src/commands/slash-command.ts:379

Top-level metadata for a slash command contract.

Options extends SlashCommandOptionFields = SlashCommandOptionFields

readonly optional contexts?: readonly number[]

Defined in: packages/platform-discord/src/commands/slash-command.ts:392


readonly optional defaultMemberPermissions?: string | number | bigint | null

Defined in: packages/platform-discord/src/commands/slash-command.ts:389


readonly description: string

Defined in: packages/platform-discord/src/commands/slash-command.ts:383

The command description shown by Discord.


readonly optional descriptionLocalizations?: Record<string, string>

Defined in: packages/platform-discord/src/commands/slash-command.ts:395


readonly optional dmPermission?: boolean

Defined in: packages/platform-discord/src/commands/slash-command.ts:390


readonly optional integrationTypes?: readonly number[]

Defined in: packages/platform-discord/src/commands/slash-command.ts:393


readonly optional nameLocalizations?: Record<string, string>

Defined in: packages/platform-discord/src/commands/slash-command.ts:394


readonly optional nsfw?: boolean

Defined in: packages/platform-discord/src/commands/slash-command.ts:391


readonly optional options?: Options

Defined in: packages/platform-discord/src/commands/slash-command.ts:388

Option fields. Use the SlashCommand option helpers so each field carries its Discord metadata and optionality.