OptionalcontextOptionaldescriptionThe 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.
Optionaldescription_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.
Optionalname_The localizations for the command name. This should be an object where the keys are locale codes and the values are the localized names.
OptionalnsfwWhether the command is NSFW (Not Safe For Work). If true, the command can only be used in NSFW channels.
OptionaloptionsThe 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.
OptionalpermisionsThe permissions required to use the command. This should be an array of permission flags from PermissionFlagsBits.
OptionalsubcommandgroupsThe subcommand groups of the command. If specified, this command will be a subcommand group command. It specified you can't have subcommands or options.
OptionalsubcommandsThe 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.