Command_Create

struct

Request body for creating an application command (also used as an element of bulk overwrite).

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)
id String Id of the command, if known (bulk overwrite 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)
type Integer Type of command, defaults to 1
part of the Apioo-Project