You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| 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 |
| 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 |
30
30
| 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 |
34
34
35
35
\*`options` can only be set for application commands of type `CHAT_INPUT`.
|`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)|
142
142
|`1 << 12`| GATEWAY_PRESENCE | Intent required for bots in **100 or more servers** to receive [`presence_update` events](/docs/events/gateway-events#presence-update)|
143
143
|`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 |
144
144
|`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