Skip to content

Commit e162645

Browse files
Strengthlessjchristgit
authored andcommitted
docs: include privileged intents in setting-test-server-and-bot-account.md
1 parent e9c1fb8 commit e162645

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pydis_site/apps/content/resources/guides/pydis-guides/contributing/setting-test-server-and-bot-account.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@ icon: fab fa-discord
1818
4. Change your bot's `Public Bot` setting off so only you can invite it, save, and then get your **Bot Token** with the `Copy` button.
1919
> **Note:** **DO NOT** post your bot token anywhere public, or it can and will be compromised.
2020
5. Save your **Bot Token** somewhere safe to use in the project settings later.
21-
6. In the `OAuth2` tab, grab the **Client ID**.
22-
7. Replace `<CLIENT_ID_HERE>` in the following URL and visit it in the browser to invite your bot to your new test server.
21+
6. Scroll down to the `Privileged Gateway Intents` section and enable required intents.
22+
> For Sir Lancebot, you need to enable `Server Member Intent`. For Python Bot, you need to enable `Server Member Intent` and `Message Content Intent`.
23+
> Failure to do so will result in a `PrivilegedIntentsRequired` exception when you start the bot.
24+
7. In the `OAuth2` tab, grab the **Client ID**.
25+
8. Replace `<CLIENT_ID_HERE>` in the following URL and visit it in the browser to invite your bot to your new test server.
2326
```plaintext
2427
https://discordapp.com/api/oauth2/authorize?client_id=<CLIENT_ID_HERE>&permissions=8&scope=bot
2528
```

0 commit comments

Comments
 (0)