diff options
author | 2022-07-10 20:38:45 +0400 | |
---|---|---|
committer | 2022-07-10 20:38:45 +0400 | |
commit | f922b76b570062bcef4ec3e9ceffcefe0d60a0d6 (patch) | |
tree | 3c1d851aad104db6f3b7a9753ed68ac4f4e4f8c1 /pydis_site/apps/content/resources/guides | |
parent | Update pydis_site/apps/content/resources/guides/python-guides/subclassing_bot.md (diff) |
Update pydis_site/apps/content/resources/guides/python-guides/subclassing_bot.md
Co-authored-by: Bluenix <[email protected]>
Diffstat (limited to 'pydis_site/apps/content/resources/guides')
-rw-r--r-- | pydis_site/apps/content/resources/guides/python-guides/subclassing_bot.md | 2 |
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 fc1cdb7d..91df2199 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 @@ -4,7 +4,7 @@ description: "Subclassing the discord.py Bot class to add more functionality and --- ## Basic Subclassing -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. +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 customisability 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 overriden to add more functionality. |