Skip to content

Commit 9e4d8b4

Browse files
updates discord suggested permissions to read only scope (#197)
* update suggested permissions scope for discord * clean up formatting
1 parent ab2bb45 commit 9e4d8b4

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

docs/beta/plugins/discord.md

+9-3
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,17 @@ Below are the basic steps to create your bot, point it at your Discord server an
9191
5. **Invite Bot to Server**
9292

9393
You can invite your bot to your server by constructing a URL with the following format :
94-
`https://discordapp.com/api/oauth2/authorize?client_id=${CLIENT_ID}&scope=bot&permissions=8`
94+
`https://discordapp.com/api/oauth2/authorize?client_id=${CLIENT_ID}&scope=bot&permissions=66560`
9595

96-
, where `CLIENT_ID` is the application ID you copied in Step 3. For example, if your CLIENT_ID = 1234, the URL would be:
96+
Permissions options:
97+
98+
- `65536`: Read Messages and Message History (minimum)
99+
- `66560`: Read Channels, Messages and Message History [suggested]
100+
- `8`: Admin
101+
102+
The `CLIENT_ID` is the application ID you copied in Step 3. For example, if your CLIENT_ID = 1234, the URL would be:
97103

98-
`https://discordapp.com/api/oauth2/authorize?client_id=1234&scope=bot&permissions=8`
104+
`https://discordapp.com/api/oauth2/authorize?client_id=1234&scope=bot&permissions=66560`
99105

100106
Paste this URL into the browser you're logged into Discord with admin permissions. You will then be prompted to select your server and give the bot permissions to read messages and message history.
101107

0 commit comments

Comments
 (0)