An application command (slash, user, message or entry point command).
| Property | Type | Description |
|---|---|---|
| application_id | String | Id of the parent application |
| contexts | Interaction contexts where the command can be used (0 GUILD, 1 BOT_DM, 2 PRIVATE_CHANNEL) | |
| default_member_permissions | String | Set of permissions represented as a bit set |
| description | String | Description for CHAT_INPUT commands, 1-100 characters |
| description_localizations | Localization dictionary for the description field | |
| dm_permission | Boolean | Deprecated (use contexts), whether the command is available in DMs |
| guild_id | String | Guild id of the command, if not global |
| handler | Integer | Entry point command handler type (1 APP_HANDLER, 2 DISCORD_LAUNCH_ACTIVITY) |
| id | String | Unique id of command |
| integration_types | Installation contexts where the command is available (0 GUILD_INSTALL, 1 USER_INSTALL) | |
| name | String | Name of command, 1-32 characters |
| name_localizations | Localization dictionary for the name field | |
| nsfw | Boolean | Whether the command is age-restricted |
| options | Parameters for the command, max of 25 | |
| type | Integer | Type of command (1 CHAT_INPUT, 2 USER, 3 MESSAGE, 4 PRIMARY_ENTRY_POINT), defaults to 1 |
| version | String | Autoincrementing version identifier updated during substantial record changes |