diff options
Diffstat (limited to 'pydis_site/apps/content')
4 files changed, 10 insertions, 7 deletions
diff --git a/pydis_site/apps/content/resources/guides/pydis-guides/contributing/bot.md b/pydis_site/apps/content/resources/guides/pydis-guides/contributing/bot.md index a414bc20..9fc0f882 100644 --- a/pydis_site/apps/content/resources/guides/pydis-guides/contributing/bot.md +++ b/pydis_site/apps/content/resources/guides/pydis-guides/contributing/bot.md @@ -57,11 +57,11 @@ See [here](../creating-bot-account) for help with setting up a bot account. Once #### Privileged Intents It is necessary to explicitly request that your Discord bot receives certain gateway events. -The Python bot requires the `Server Member Intent` to function. +The Python bot requires `Server Member Intent` and `Message Content Intent` to function. In order to enable it, visit the [Developer Portal](https://discord.com/developers/applications/) (from where you copied your bot's login token) and scroll down to the `Privileged Gateway Intents` section. The `Presence Intent` is not necessary and can be left disabled. -If your bot fails to start with a `PrivilegedIntentsRequired` exception, this indicates that the required intent was not enabled. +If your bot fails to start with a `PrivilegedIntentsRequired` exception, this indicates that the required intents were not enabled. --- diff --git a/pydis_site/apps/content/resources/guides/pydis-guides/contributing/setting-test-server-and-bot-account.md b/pydis_site/apps/content/resources/guides/pydis-guides/contributing/setting-test-server-and-bot-account.md index 43d1c8f5..e9555575 100644 --- a/pydis_site/apps/content/resources/guides/pydis-guides/contributing/setting-test-server-and-bot-account.md +++ b/pydis_site/apps/content/resources/guides/pydis-guides/contributing/setting-test-server-and-bot-account.md @@ -18,8 +18,11 @@ icon: fab fa-discord 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. > **Note:** **DO NOT** post your bot token anywhere public, or it can and will be compromised. 5. Save your **Bot Token** somewhere safe to use in the project settings later. -6. In the `OAuth2` tab, grab the **Client ID**. -7. Replace `<CLIENT_ID_HERE>` in the following URL and visit it in the browser to invite your bot to your new test server. +6. Scroll down to the `Privileged Gateway Intents` section and enable required intents. +> For Sir Lancebot, you need to enable `Server Member Intent`. For Python Bot, you need to enable `Server Member Intent` and `Message Content Intent`. +> Failure to do so will result in a `PrivilegedIntentsRequired` exception when you start the bot. +7. In the `OAuth2` tab, grab the **Client ID**. +8. Replace `<CLIENT_ID_HERE>` in the following URL and visit it in the browser to invite your bot to your new test server. ```plaintext https://discordapp.com/api/oauth2/authorize?client_id=<CLIENT_ID_HERE>&permissions=8&scope=bot ``` diff --git a/pydis_site/apps/content/resources/guides/python-guides/discord-embed-limits.md b/pydis_site/apps/content/resources/guides/python-guides/discord-embed-limits.md index ca97462b..b1385016 100644 --- a/pydis_site/apps/content/resources/guides/python-guides/discord-embed-limits.md +++ b/pydis_site/apps/content/resources/guides/python-guides/discord-embed-limits.md @@ -11,11 +11,11 @@ If you plan on using embed responses for your bot you should know the limits of - A **field name/title** is limited to **256 character** and the **value of the field** is limited to **1024 characters** - Embed **footer** is limited to **2048 characters** - Embed **author name** is limited to **256 characters** -- The **total of characters** allowed in an embed is **6000** +- The **total characters** of all embeds in a single message is limited to **6000** +- A message is limited to **10 embeds** Now if you need to get over this limit (for example for a help command), you would need to use pagination. There are several ways to do that: -- A library called **[disputils](https://pypi.org/project/disputils)** - An experimental library made by the discord.py developer called **[discord-ext-menus](https://github.com/Rapptz/discord-ext-menus)** - Make your own setup using **[wait_for()](https://discordpy.readthedocs.io/en/stable/ext/commands/api.html#discord.ext.commands.Bot.wait_for)** and wait for a reaction to be added diff --git a/pydis_site/apps/content/resources/guides/python-guides/vps-services.md b/pydis_site/apps/content/resources/guides/python-guides/vps-services.md index df20395b..9a4a28c9 100644 --- a/pydis_site/apps/content/resources/guides/python-guides/vps-services.md +++ b/pydis_site/apps/content/resources/guides/python-guides/vps-services.md @@ -9,7 +9,7 @@ toc: 2 If you need to run your bot 24/7 (with no downtime), you should consider using a virtual private server (VPS). Here is a list of VPS services that are sufficient for running Discord bots. * Europe - * [netcup](https://www.netcup.eu/?ref=177518) + * [netcup](https://www.netcup.com/?ref=177518) * Germany & Austria data centres. * Great affiliate program. * [Yandex Cloud](https://cloud.yandex.ru/) |