Optional
contextOptional
descriptionThe description of the command, subcommand, subcommand group.
Required if it's an option.
This should be a string that describes what the command does.
It can be localized using the description_localizations
property.
Optional
description_The localizations for the command description. This should be an object where the keys are locale codes and the values are the localized descriptions.
The name of the command, subcommand, subcommand group, option. This should be a lowercase string with no spaces. It can only contain alphanumeric characters, underscores, and dashes.
Optional
name_The localizations for the command name. This should be an object where the keys are locale codes and the values are the localized names.
Optional
nsfwWhether the command is NSFW (Not Safe For Work). If true, the command can only be used in NSFW channels.
Optional
optionsThe options of the command. If specified, this command will be a simple command with options. It specified you can't have subcommands or subcommand groups.
Optional
permisionsThe permissions required to use the command. This should be an array of permission flags from PermissionFlagsBits.
Optional
subcommandgroupsThe subcommand groups of the command. If specified, this command will be a subcommand group command. It specified you can't have subcommands or options.
Optional
subcommandsThe subcommands of the command. If specified, this command will be a subcommand command. It specified you can't have subcommand groups or options.
The context in which the command can be used. If not specified, the command can be used in both guild and DM contexts.