aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Diabolical5777 <[email protected]>2022-06-20 16:11:30 +0400
committerGravatar GitHub <[email protected]>2022-06-20 16:11:30 +0400
commit958408461607e20f888fdef0eb16fa7bd05b8568 (patch)
tree547b1ffd43e5731b7160fb0f1ee6e1167b5a8ced
parentUpdate subclassing_bot.md (diff)
Update subclassing_bot.md
-rw-r--r--pydis_site/apps/content/resources/guides/python-guides/subclassing_bot.md2
1 files changed, 0 insertions, 2 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 381f25f1..93d65b35 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
@@ -56,5 +56,3 @@ async def example(ctx):
# In this case, this will print Hello World!
```
With either of the above examples, you are not required to change any of the existing or future code, it is identical to code done without subclassing bot.
-
-To access the custom bot attributes set in the subclass, in the main bot file (in the context of the above example), `bot.variable_name` would be used, and as for cogs, it would be `self.bot.variable_name`. For the custom methods set, in the main file it would be `bot.custom_method()` in the main file and `self.bot.custom_method()` in a cog file.