mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 13:26:54 +00:00
Bot permission granting in Discord integration doc (#27230)
Change image links to use markdown syntax
This commit is contained in:
parent
f21db9c9f8
commit
c182d1350c
@ -35,27 +35,25 @@ The name you give your application on the [Discord My Apps page](https://discord
|
||||
|
||||
### Setting up the bot
|
||||
|
||||
Bots can send messages to servers and users or attach locally available images. To add the bot to a server you are an admin on use the **Application ID** you noted above, found on the [Discord My Apps page](https://discordapp.com/developers/applications/me).
|
||||
Bots can send messages to servers and users or attach locally available images. To add the bot to a server you are an admin on, use the **Application ID** you noted above, found on the [Discord My Apps page](https://discordapp.com/developers/applications/me).
|
||||
|
||||
<p class='img'>
|
||||
<img src='/images/screenshots/discord-bot.png' />
|
||||
</p>
|
||||

|
||||
|
||||
Now use the Discord Authorization page with the **Application ID** of your [application](https://discordapp.com/developers/docs/topics/oauth2#bots).
|
||||
Next, decide what permissions your bot will have within your server. Under the 'Bot' section, select the permissions you want to grant and copy the permissions integer from the bottom field.
|
||||
|
||||
`https://discordapp.com/api/oauth2/authorize?client_id=[APPLICATION_ID]&scope=bot&permissions=0`
|
||||

|
||||
|
||||
<p class='img'>
|
||||
<img src='/images/screenshots/discord-auth.png' />
|
||||
</p>
|
||||
Now use the Discord Authorization page with the **Application ID** of your [application](https://discordapp.com/developers/docs/topics/oauth2#bots) and the **Permissions Integer**.
|
||||
|
||||
`https://discordapp.com/api/oauth2/authorize?client_id=[APPLICATION_ID]&scope=bot&permissions=[PERMISSIONS_INTEGER]`
|
||||
|
||||

|
||||
|
||||
Wait for the confirmation which should say "Authorized".
|
||||
|
||||
Once the bot has been added to your server, get the channel ID of the channel you want the bot to operate in. In The Discord application go to **Settings** > **Advanced** > **Enable Developer Mode**.
|
||||
|
||||
<p class='img'>
|
||||
<img src='/images/screenshots/discord-api.png' />
|
||||
</p>
|
||||

|
||||
|
||||
Right click channel name and copy the channel ID (**Copy ID**).
|
||||
|
||||
|
BIN
source/images/screenshots/discord-bot-permissions.png
Normal file
BIN
source/images/screenshots/discord-bot-permissions.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 133 KiB |
Loading…
x
Reference in New Issue
Block a user