Command_Update

struct

Request body for editing an application command.

Property Type Description
contexts
ArrayInteger
Interaction contexts where the command can be used (global commands only)
default_member_permissions String Set of permissions represented as a bit set
description String 1-100 character description for CHAT_INPUT commands
description_localizations
MapString
Localization dictionary for the description field
dm_permission Boolean Deprecated (use contexts), whether the command is available in DMs
handler Integer Entry point command handler type (PRIMARY_ENTRY_POINT only)
integration_types
ArrayInteger
Installation contexts where the command is available (global commands only)
name String Name of command, 1-32 characters
name_localizations
MapString
Localization dictionary for the name field
nsfw Boolean Whether the command is age-restricted
options Parameters for the command, max of 25 (CHAT_INPUT only)
part of the Apioo-Project