ApplicationCommandData
typedef · Source
Data for creating or editing an application command. Type: Object
Properties
name
name: string
The name of the command
nameLocalizations
nameLocalizations: Object<Locale, string>
The localizations for the command name
description
description: string
The description of the command
descriptionLocalizations
descriptionLocalizations: Object<Locale, string>
The localizations for the command description
type
type: ApplicationCommandType
The type of the command
options
options: Array<ApplicationCommandOptionData>
Options for the command
defaultPermission
defaultPermission: boolean
Whether the command is enabled by default when the app is added to a guild
defaultMemberPermissions
defaultMemberPermissions: PermissionResolvable
The bitfield used to determine the default permissions a member needs in order to run the command
dmPermission
dmPermission: boolean
Whether the command is enabled in DMs