Skip to content

ApplicationCommandData ​

typedef · Source

Data for creating or editing an application command. Type: Object

Properties ​

name ​

name: string

The name of the command

nameLocalizations ​

optional

nameLocalizations: Object<Locale, string>

The localizations for the command name

description ​

description: string

The description of the command

descriptionLocalizations ​

optional

descriptionLocalizations: Object<Locale, string>

The localizations for the command description

type ​

optional

type: ApplicationCommandType

The type of the command

options ​

optional

options: Array<ApplicationCommandOptionData>

Options for the command

defaultPermission ​

optional

defaultPermission: boolean

Whether the command is enabled by default when the app is added to a guild

defaultMemberPermissions ​

nullable · optional

defaultMemberPermissions: PermissionResolvable

The bitfield used to determine the default permissions a member needs in order to run the command

dmPermission ​

optional

dmPermission: boolean

Whether the command is enabled in DMs

Unofficial software. Not affiliated with or supported by Discord.