APIApplicationCommand
Defined in: packages/types/src/index.ts:1085
Raw Discord application command object (from API).
Properties
Section titled “Properties”application_id
Section titled “application_id”application_id:
string
Defined in: packages/types/src/index.ts:1088
contexts?
Section titled “contexts?”
optionalcontexts?:number[]
Defined in: packages/types/src/index.ts:1095
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:1093
description
Section titled “description”description:
string
Defined in: packages/types/src/index.ts:1091
guild_id?
Section titled “guild_id?”
optionalguild_id?:string
Defined in: packages/types/src/index.ts:1089
id:
string
Defined in: packages/types/src/index.ts:1086
name:
string
Defined in: packages/types/src/index.ts:1090
optionalnsfw?:boolean
Defined in: packages/types/src/index.ts:1096
options?
Section titled “options?”
optionaloptions?:APIApplicationCommandOption[]
Defined in: packages/types/src/index.ts:1092
optionaltype?:number
Defined in: packages/types/src/index.ts:1087
version
Section titled “version”version:
string
Defined in: packages/types/src/index.ts:1097