SlashCommandConfig
Defined in: packages/platform-discord/src/commands/slash-command.ts:379
Top-level metadata for a slash command contract.
Type Parameters
Section titled “Type Parameters”Options
Section titled “Options”Options extends SlashCommandOptionFields = SlashCommandOptionFields
Properties
Section titled “Properties”contexts?
Section titled “contexts?”
readonlyoptionalcontexts?: readonlynumber[]
Defined in: packages/platform-discord/src/commands/slash-command.ts:392
defaultMemberPermissions?
Section titled “defaultMemberPermissions?”
readonlyoptionaldefaultMemberPermissions?:string|number|bigint|null
Defined in: packages/platform-discord/src/commands/slash-command.ts:389
description
Section titled “description”
readonlydescription:string
Defined in: packages/platform-discord/src/commands/slash-command.ts:383
The command description shown by Discord.
descriptionLocalizations?
Section titled “descriptionLocalizations?”
readonlyoptionaldescriptionLocalizations?:Record<string,string>
Defined in: packages/platform-discord/src/commands/slash-command.ts:395
dmPermission?
Section titled “dmPermission?”
readonlyoptionaldmPermission?:boolean
Defined in: packages/platform-discord/src/commands/slash-command.ts:390
integrationTypes?
Section titled “integrationTypes?”
readonlyoptionalintegrationTypes?: readonlynumber[]
Defined in: packages/platform-discord/src/commands/slash-command.ts:393
nameLocalizations?
Section titled “nameLocalizations?”
readonlyoptionalnameLocalizations?:Record<string,string>
Defined in: packages/platform-discord/src/commands/slash-command.ts:394
readonlyoptionalnsfw?:boolean
Defined in: packages/platform-discord/src/commands/slash-command.ts:391
options?
Section titled “options?”
readonlyoptionaloptions?: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.