From a1da70faf493d66c714903328bf79986e7b1dd89 Mon Sep 17 00:00:00 2001 From: RohanJnr Date: Wed, 17 May 2023 20:36:48 +0530 Subject: remove .md for hyperlinks --- .../resources/guides/python-guides/discordpy-subclassing-context.md | 2 +- .../apps/content/resources/guides/python-guides/subclassing_bot.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'pydis_site/apps/content/resources/guides') diff --git a/pydis_site/apps/content/resources/guides/python-guides/discordpy-subclassing-context.md b/pydis_site/apps/content/resources/guides/python-guides/discordpy-subclassing-context.md index 7f43c50f..5e5f05c1 100644 --- a/pydis_site/apps/content/resources/guides/python-guides/discordpy-subclassing-context.md +++ b/pydis_site/apps/content/resources/guides/python-guides/discordpy-subclassing-context.md @@ -3,7 +3,7 @@ title: Subclassing Context in discord.py description: "Subclassing the default `commands.Context` class to add more functionability and customizability." --- -Start by reading the guide on [subclassing the `Bot` class](../subclassing_bot.md). A subclass of Bot has to be used to +Start by reading the guide on [subclassing the `Bot` class](../subclassing_bot). A subclass of Bot has to be used to inject your custom context subclass into discord.py. ## Overview 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 6a79190f..8982a4f6 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](../discordpy-subclassing-context.md) 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) to add more functionality. You can subclass `commands.Bot` as shown below: ```python -- cgit v1.2.3