ApplicationCommandData
Defined in: packages/types/src/index.ts:1101
Data for creating/overwriting an application command.
Properties
Section titled “Properties”contexts?
Section titled “contexts?”
optionalcontexts?:number[]
Defined in: packages/types/src/index.ts:1109
Where the command can be used: 0 guilds, 1 the bot’s DMs, 2 other DMs.
default_member_permissions?
Section titled “default_member_permissions?”
optionaldefault_member_permissions?:string|null
Defined in: packages/types/src/index.ts:1107
description?
Section titled “description?”
optionaldescription?:string
Defined in: packages/types/src/index.ts:1104
Required for slash commands; user and message context-menu commands have none.
name:
string
Defined in: packages/types/src/index.ts:1102
optionalnsfw?:boolean
Defined in: packages/types/src/index.ts:1110
options?
Section titled “options?”
optionaloptions?:APIApplicationCommandOption[]
Defined in: packages/types/src/index.ts:1106
optionaltype?:number
Defined in: packages/types/src/index.ts:1105