Skip to content

Commit

Permalink
fix optionality for global commands (discord#6726)
Browse files Browse the repository at this point in the history
  • Loading branch information
shaydewael committed May 14, 2024
1 parent 82b1a5c commit 9c4da78
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/interactions/Application_Commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -1100,8 +1100,8 @@ Create a new global command. Returns `201` if a command with the same name does
| default_member_permissions? | ?string | Set of [permissions](#DOCS_TOPICS_PERMISSIONS) represented as a bit set |
| dm_permission? | ?boolean | **Deprecated (use `contexts` instead)**; Indicates whether the command is available in DMs with the app, only for globally-scoped commands. By default, commands are visible. |
| default_permission? | boolean | Replaced by `default_member_permissions` and will be deprecated in the future. Indicates whether the command is enabled by default when the app is added to a guild. Defaults to `true` |
| integration_types | list of [integration types](#DOCS_RESOURCES_APPLICATION/application-object-application-integration-types) | [Installation context(s)](#DOCS_RESOURCES_APPLICATION/installation-context) where the command is available | all |
| contexts | list of [interaction context types](#DOCS_INTERACTIONS_RECEIVING_AND_RESPONDING/interaction-object-interaction-context-types) | [Interaction context(s)](#DOCS_INTERACTIONS_RECEIVING_AND_RESPONDING/interaction-object-interaction-context-types) where the command can be used | all |
| integration_types? | list of [integration types](#DOCS_RESOURCES_APPLICATION/application-object-application-integration-types) | [Installation context(s)](#DOCS_RESOURCES_APPLICATION/installation-context) where the command is available | all |
| contexts? | list of [interaction context types](#DOCS_INTERACTIONS_RECEIVING_AND_RESPONDING/interaction-object-interaction-context-types) | [Interaction context(s)](#DOCS_INTERACTIONS_RECEIVING_AND_RESPONDING/interaction-object-interaction-context-types) where the command can be used | all |
| type? | one of [application command type](#DOCS_INTERACTIONS_APPLICATION_COMMANDS/application-command-object-application-command-types) | Type of command, defaults `1` if not set |
| nsfw? | boolean | Indicates whether the command is [age-restricted](#DOCS_INTERACTIONS_APPLICATION_COMMANDS/agerestricted-commands) |

Expand All @@ -1128,8 +1128,8 @@ Edit a global command. Returns `200` and an [application command](#DOCS_INTERACT
| default_member_permissions? | ?string | Set of [permissions](#DOCS_TOPICS_PERMISSIONS) represented as a bit set |
| dm_permission? | ?boolean | **Deprecated (use `contexts` instead)**; Indicates whether the command is available in DMs with the app, only for globally-scoped commands. By default, commands are visible. |
| default_permission? | boolean | Replaced by `default_member_permissions` and will be deprecated in the future. Indicates whether the command is enabled by default when the app is added to a guild. Defaults to `true` |
| integration_types | list of [integration types](#DOCS_RESOURCES_APPLICATION/application-object-application-integration-types) | [Installation context(s)](#DOCS_RESOURCES_APPLICATION/installation-context) where the command is available | all |
| contexts | list of [interaction context types](#DOCS_INTERACTIONS_RECEIVING_AND_RESPONDING/interaction-object-interaction-context-types) | [Interaction context(s)](#DOCS_INTERACTIONS_RECEIVING_AND_RESPONDING/interaction-object-interaction-context-types) where the command can be used | all |
| integration_types? | list of [integration types](#DOCS_RESOURCES_APPLICATION/application-object-application-integration-types) | [Installation context(s)](#DOCS_RESOURCES_APPLICATION/installation-context) where the command is available | all |
| contexts? | list of [interaction context types](#DOCS_INTERACTIONS_RECEIVING_AND_RESPONDING/interaction-object-interaction-context-types) | [Interaction context(s)](#DOCS_INTERACTIONS_RECEIVING_AND_RESPONDING/interaction-object-interaction-context-types) where the command can be used | all |
| nsfw? | boolean | Indicates whether the command is [age-restricted](#DOCS_INTERACTIONS_APPLICATION_COMMANDS/agerestricted-commands) |

## Delete Global Application Command % DELETE /applications/{application.id#DOCS_RESOURCES_APPLICATION/application-object}/commands/{command.id#DOCS_INTERACTIONS_APPLICATION_COMMANDS/application-command-object}
Expand Down

0 comments on commit 9c4da78

Please sign in to comment.