Skip to content

Commit f146a8d

Browse files
come on now man
1 parent 9b30374 commit f146a8d

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

docs/interactions/application-commands.mdx

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,25 @@ Application commands are native ways to interact with apps in the Discord client
1212

1313
###### Application Command Structure
1414

15-
| Field | Type | Description | Valid Types |
16-
|----------------------------|--------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------|
17-
| id | snowflake | Unique ID of command | all |
18-
| type? | one of [command types](/docs/interactions/application-commands#application-command-object-application-command-types) | [Type of command](/docs/interactions/application-commands#application-command-object-application-command-types), defaults to `1` | all |
19-
| application_id | snowflake | ID of the parent application | all |
20-
| guild_id? | snowflake | Guild ID of the command, if not global | all |
21-
| name | string | [Name of command](/docs/interactions/application-commands#application-command-object-application-command-naming), 1-32 characters | all |
22-
| name_localizations? | ?dictionary with keys in [available locales](/docs/reference#locales) | Localization dictionary for `name` field. Values follow the same restrictions as `name` | all |
23-
| description | string | Description for `CHAT_INPUT` commands, 1-100 characters. Empty string for `USER` and `MESSAGE` commands | all |
24-
| description_localizations? | ?dictionary with keys in [available locales](/docs/reference#locales) | Localization dictionary for `description` field. Values follow the same restrictions as `description` | all |
25-
| options? \* | array of [command options](/docs/interactions/application-commands#application-command-object-application-command-option-structure) | Parameters for the command, max of 25 | CHAT_INPUT |
26-
| default_member_permissions | ?string | Set of [permissions](/docs/topics/permissions) represented as a bit set | all |
27-
| 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. | all |
28-
| default_permission? | ?boolean | Not recommended for use as field will soon be deprecated. Indicates whether the command is enabled by default when the app is added to a guild, defaults to `true` | all |
29-
| nsfw? | boolean | Indicates whether the command is [age-restricted](/docs/interactions/application-commands#agerestricted-commands), defaults to `false` | all |
15+
| Field | Type | Description | Valid Types |
16+
|----------------------------|--------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------|
17+
| id | snowflake | Unique ID of command | all |
18+
| type? | one of [command types](/docs/interactions/application-commands#application-command-object-application-command-types) | [Type of command](/docs/interactions/application-commands#application-command-object-application-command-types), defaults to `1` | all |
19+
| application_id | snowflake | ID of the parent application | all |
20+
| guild_id? | snowflake | Guild ID of the command, if not global | all |
21+
| name | string | [Name of command](/docs/interactions/application-commands#application-command-object-application-command-naming), 1-32 characters | all |
22+
| name_localizations? | ?dictionary with keys in [available locales](/docs/reference#locales) | Localization dictionary for `name` field. Values follow the same restrictions as `name` | all |
23+
| description | string | Description for `CHAT_INPUT` commands, 1-100 characters. Empty string for `USER` and `MESSAGE` commands | all |
24+
| description_localizations? | ?dictionary with keys in [available locales](/docs/reference#locales) | Localization dictionary for `description` field. Values follow the same restrictions as `description` | all |
25+
| options? \* | array of [command options](/docs/interactions/application-commands#application-command-object-application-command-option-structure) | Parameters for the command, max of 25 | CHAT_INPUT |
26+
| default_member_permissions | ?string | Set of [permissions](/docs/topics/permissions) represented as a bit set | all |
27+
| 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. | all |
28+
| default_permission? | ?boolean | Not recommended for use as field will soon be deprecated. Indicates whether the command is enabled by default when the app is added to a guild, defaults to `true` | all |
29+
| nsfw? | boolean | Indicates whether the command is [age-restricted](/docs/interactions/application-commands#agerestricted-commands), defaults to `false` | all |
3030
| integration_types? | list of [integration types](/docs/resources/application#application-object-application-integration-types) | [Installation contexts](/docs/resources/application#installation-context) where the command is available, only for globally-scoped commands. Defaults to your app's [configured contexts](/docs/resources/application#setting-supported-installation-contexts) | all |
31-
| 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, only for globally-scoped commands. By default, all interaction context types included for new commands. | all |
32-
| version | snowflake | Autoincrementing version identifier updated during substantial record changes | all |
33-
| handler? | one of [command handler types](/docs/interactions/application-commands#application-command-object-entry-point-command-handler-types) | Determines whether the interaction is handled by the app's interactions handler or by Discord | PRIMARY_ENTRY_POINT |
31+
| 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, only for globally-scoped commands. By default, all interaction context types included for new commands. | all |
32+
| version | snowflake | Autoincrementing version identifier updated during substantial record changes | all |
33+
| handler? | one of [command handler types](/docs/interactions/application-commands#application-command-object-entry-point-command-handler-types) | Determines whether the interaction is handled by the app's interactions handler or by Discord | PRIMARY_ENTRY_POINT |
3434

3535
\* `options` can only be set for application commands of type `CHAT_INPUT`.
3636

docs/resources/application.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ Status indicating whether event webhooks are enabled or disabled for an applicat
138138

139139
| Value | Name | Description |
140140
|-----------|-----------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
141-
| `1 << 6` | APPLICATION_AUTO_MODERATION_RULE_CREATE_BADGE | Indicates if an app uses the [Auto Moderation API](/docs/resources/auto-moderation) |
141+
| `1 << 6` | APPLICATION_AUTO_MODERATION_RULE_CREATE_BADGE | Indicates if an app uses the [Auto Moderation API](/docs/resources/auto-moderation) |
142142
| `1 << 12` | GATEWAY_PRESENCE | Intent required for bots in **100 or more servers** to receive [`presence_update` events](/docs/events/gateway-events#presence-update) |
143143
| `1 << 13` | GATEWAY_PRESENCE_LIMITED | Intent required for bots in under 100 servers to receive [`presence_update` events](/docs/events/gateway-events#presence-update), found on the **Bot** page in your app's settings |
144144
| `1 << 14` | GATEWAY_GUILD_MEMBERS | Intent required for bots in **100 or more servers** to receive member-related events like `guild_member_add`. See the list of member-related events [under `GUILD_MEMBERS`](/docs/events/gateway#list-of-intents) |

0 commit comments

Comments
 (0)