aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/content/resources
diff options
context:
space:
mode:
authorGravatar RohanJnr <[email protected]>2023-05-17 20:16:11 +0530
committerGravatar RohanJnr <[email protected]>2023-05-17 20:16:11 +0530
commit5a2c346cb07eb746e3d3532cf38dadcfa983e13e (patch)
tree4e6845a50ff1f312a573debad169027f16e7d57a /pydis_site/apps/content/resources
parentremove redundant info (diff)
add reference link for overriding context and fix link for subclassing bot
Diffstat (limited to 'pydis_site/apps/content/resources')
-rw-r--r--pydis_site/apps/content/resources/guides/python-guides/subclassing_bot.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/pydis_site/apps/content/resources/guides/python-guides/subclassing_bot.md b/pydis_site/apps/content/resources/guides/python-guides/subclassing_bot.md
index 1cdf9c14..6a79190f 100644
--- a/pydis_site/apps/content/resources/guides/python-guides/subclassing_bot.md
+++ b/pydis_site/apps/content/resources/guides/python-guides/subclassing_bot.md
@@ -7,7 +7,7 @@ description: "Subclassing the discord.py `Bot` class to add more functionality a
First, a [basic article](https://www.codesdope.com/course/python-subclass-of-a-class/) on subclassing will provide some fundamental knowledge, which is highly suggested before moving on to this topic, as subclassing [`Bot`](https://discordpy.readthedocs.io/en/latest/ext/commands/api.html#discord.ext.commands.Bot) can ultimately be a complicated task.
## The Benefits of Subclassing Bot
-Subclassing `Bot` can be very beneficial as it provides you with more control and customizability of how your bot functions, also allowing you to add extra features, such as custom bot attributes or methods. For example, the default [Context](https://discordpy.readthedocs.io/en/latest/ext/commands/api.html#discord.ext.commands.Context) can be overridden to add more functionality.
+Subclassing `Bot` can be very beneficial as it provides you with more control and customizability of how your bot functions, also allowing you to add extra features, such as custom bot attributes or methods. For example, the default [Context](https://discordpy.readthedocs.io/en/latest/ext/commands/api.html#discord.ext.commands.Context) can be [overridden](../discordpy-subclassing-context.md) to add more functionality.
You can subclass `commands.Bot` as shown below:
```python