Skip to content

Commit

Permalink
refactor: remove applications.commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiralite committed Dec 9, 2023
1 parent 4a582dc commit aa6c833
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The basic version of one such link looks like this:
<CH.Code lineNumbers={false}>

```
https://discord.com/api/oauth2/authorize?client_id=123456789012345678&permissions=0&scope=bot%20applications.commands
https://discord.com/api/oauth2/authorize?client_id=123456789012345678&permissions=0&scope=bot
```

</CH.Code>
Expand All @@ -26,7 +26,7 @@ The structure of the URL is quite simple:
- _`https://discord.com/api/oauth2/authorize`_ is Discord's standard structure for authorizing an OAuth2 application (such as your bot application) for entry to a Discord server.
- _`client_id=...`_ is to specify _which_ application you want to authorize. You'll need to replace this part with your client's id to create a valid invite link.
- _`permissions=...`_ describes the permissions that your bot will request to be granted by default upon joining the server you are adding it to.
- _`scope=bot%20applications.commands`_ specifies that you want to add this application as a Discord bot with the ability to create slash commands.
- _`scope=bot`_ specifies that you want to add this application as a Discord bot with the ability to create slash commands.

<Alert title="Warning" type="warning">
If you get an error message saying "Bot requires a code grant", head over to your application's settings and disable
Expand All @@ -37,7 +37,7 @@ The structure of the URL is quite simple:

To create an invite link, head back to the [developer portal](https://discord.com/developers/applications), click on your bot application, and open the OAuth2 page.

In the sidebar, you'll find the URL generator. Select the _`bot`_ and _`applications.commands`_ options. Once you select the _`bot`_ option, a list of permissions will appear, allowing you to configure the permissions your bot needs.
In the sidebar, you'll find the URL generator. Select the _`bot`_ option. Once you select the _`bot`_ option, a list of permissions will appear, allowing you to configure the permissions your bot needs.

Grab the link via the "Copy" button and send it in a channel in Discord. Click on the link you just sent which should reveal this:

Expand Down

0 comments on commit aa6c833

Please sign in to comment.