Skip to content

Commit

Permalink
remove TODOs (discord#6725)
Browse files Browse the repository at this point in the history
  • Loading branch information
shaydewael committed May 14, 2024
1 parent 3fb471b commit 82b1a5c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/interactions/Application_Commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Application commands are native ways to interact with apps in the Discord client
| version | snowflake | Autoincrementing version identifier updated during substantial record changes | all |

> danger
> `default_permission` will soon be deprecated. You can instead set `default_member_permissions` to `"0"` to disable the command for everyone except admins by default, and/or set `dm_permission` to `false` to disable globally-scoped commands inside of DMs with your app (TODO: UPDATE THIS)
> `default_permission` will soon be deprecated. You can instead set `default_member_permissions` to `"0"` to disable the command for everyone except admins by default, and/or use `contexts` to disable globally-scoped commands inside of DMs with your app
###### Application Command Types

Expand Down Expand Up @@ -346,8 +346,6 @@ Similar to how threads [inherit user and role permissions from the parent channe

Default permissions can be added to a command during creation using the `default_member_permissions` and `context` fields. Adding default permissions doesn't require any Bearer token since it's configured during command creation and isn't targeting specific roles, users, or channels.

<TODO: split out context from this section?>

The `default_member_permissions` field can be used when creating a command to set the permissions a user must have to use it. The value for `default_member_permissions` is a bitwise OR-ed set of [permissions](#DOCS_TOPICS_PERMISSIONS/permissions-bitwise-permission-flags), serialized as a string. Setting it to `"0"` will prohibit anyone in a guild from using the command unless a specific overwrite is configured or the user has admin permissions.

You can also include `BOT_DM` (`1`) in `contexts` when setting a global command's [interaction contexts](#DOCS_INTERACTIONS_APPLICATION_COMMANDS/interaction-contexts) to control whether it can be run in DMs with your app. Guild commands don't support the `BOT_DM` interaction context.
Expand Down

0 comments on commit 82b1a5c

Please sign in to comment.