SlashCommandJson
Defined in: packages/platform-discord/src/commands/slash-command.ts:351
The JSON shape Discord accepts for application command registration.
Properties
Section titled “Properties”contexts?
Section titled “contexts?”
readonlyoptionalcontexts?: readonlynumber[]
Defined in: packages/platform-discord/src/commands/slash-command.ts:359
default_member_permissions?
Section titled “default_member_permissions?”
readonlyoptionaldefault_member_permissions?:string|null
Defined in: packages/platform-discord/src/commands/slash-command.ts:356
description
Section titled “description”
readonlydescription:string
Defined in: packages/platform-discord/src/commands/slash-command.ts:354
description_localizations?
Section titled “description_localizations?”
readonlyoptionaldescription_localizations?:Record<string,string>
Defined in: packages/platform-discord/src/commands/slash-command.ts:362
dm_permission?
Section titled “dm_permission?”
readonlyoptionaldm_permission?:boolean
Defined in: packages/platform-discord/src/commands/slash-command.ts:357
integration_types?
Section titled “integration_types?”
readonlyoptionalintegration_types?: readonlynumber[]
Defined in: packages/platform-discord/src/commands/slash-command.ts:360
readonlyname:string
Defined in: packages/platform-discord/src/commands/slash-command.ts:353
name_localizations?
Section titled “name_localizations?”
readonlyoptionalname_localizations?:Record<string,string>
Defined in: packages/platform-discord/src/commands/slash-command.ts:361
readonlyoptionalnsfw?:boolean
Defined in: packages/platform-discord/src/commands/slash-command.ts:358
options?
Section titled “options?”
readonlyoptionaloptions?: readonlyOptionData[]
Defined in: packages/platform-discord/src/commands/slash-command.ts:355
readonlytype:1
Defined in: packages/platform-discord/src/commands/slash-command.ts:352