Optional
contextsOptional
defaultThe default member permissions for the command.
Optional
descriptionThe description of the command.
Optional
descriptionA dictionary of locales to localized descriptions.
Optional
dmIf the command can be used in a DM.
Use contexts instead.
Optional
idThe ID of the command, if known. (Only usable when bulkEditing guild commands.)
Optional
integrationThe install contexts where the command is available. Defaults to GUILD_INSTALL.
Optional
nameThe name of the command.
Optional
nameA dictionary of locales to localized names.
Optional
nsfwWhether the command is age restricted.
Optional
optionsSee Discord's docs for more information. Convert snake_case
keys to camelCase
.
The interaction contexts where the command can be used. Defaults to all interaction context types for new commands.