aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/content/resources
diff options
context:
space:
mode:
authorGravatar shtlrs <[email protected]>2023-02-28 09:50:15 +0100
committerGravatar shtlrs <[email protected]>2023-02-28 09:50:15 +0100
commit1c23a1715496332a25f2548e208e4e09c31d8be9 (patch)
tree963b04342d0a280c00f1203d7e8fd9f8428beb04 /pydis_site/apps/content/resources
parentMention that only necessary component IDs needs to be added when configuring ... (diff)
use concrete ids for the channel examples
Diffstat (limited to 'pydis_site/apps/content/resources')
-rw-r--r--pydis_site/apps/content/resources/guides/pydis-guides/contributing/bot.md12
1 files changed, 6 insertions, 6 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 4322d0a6..c991d432 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
@@ -111,8 +111,8 @@ class _Channels(EnvConfig):
EnvConfig.Config.env_prefix = "channels."
- announcements = 123
- changelog = 456
+ announcements = 1079790565794779156
+ changelog = 1077877318564991006
# Instantiate the class & load the configuration
Channels = _Channels()
@@ -121,7 +121,7 @@ Channels = _Channels()
`.env.server` file
```text
-channels.announcements=789
+channels.announcements=1077875228002234398
```
When you launch your bot, `pydantic` will load up the server constants from the `.env.server` file if they exist.
@@ -131,13 +131,13 @@ Each constants class will define its own prefix, which will make `pydantic` look
In our example, this will imply that pydantic will look for both `channels.announcements` and `channels.changelog` in the `.env.server` file.
As you can see here, only `channels.announcements` has been defined in the `.env.server` file since it's the only one needed, which will tell `pydantic`
-to use the value **789** for the `announcements` attribute instead of the default **456**, and use the default value for the `changelog` attribute
+to use the value **1077875228002234398** for the `announcements` attribute instead of the default **1079790565794779156**, and use the default value for the `changelog` attribute
```python
>>> Channels.announcements
-789
+1077875228002234398
>>> Channels.changelong
-456
+1077877318564991006
```
See [here](../obtaining-discord-ids) for help with obtaining Discord IDs.