summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2023-07-25 14:19:04 +0100
committerGravatar Chris Lovering <[email protected]>2023-07-25 14:19:04 +0100
commit2da733d7febe4bc0ff78fd0074811b829118161c (patch)
tree24d7e19a79fbf6c2ae8b4e824920e899f73d0b21
parentConsistently use fullstops in changelog (diff)
fixup: Update BotBase.process_commands docstring to be more explicit
-rw-r--r--pydis_core/_bot.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/pydis_core/_bot.py b/pydis_core/_bot.py
index a94dff56..6a3d3886 100644
--- a/pydis_core/_bot.py
+++ b/pydis_core/_bot.py
@@ -232,7 +232,11 @@ class BotBase(commands.Bot):
await self._guild_available.wait()
async def process_commands(self, message: discord.Message) -> None:
- """Wait until all extensions are loaded before processing commands."""
+ """
+ Overwrite default Discord.py behaviour to process commands only after ensuring extensions are loaded.
+
+ This extension check is only relevant for clients that make use of :obj:`pydis_core.BotBase.load_extensions`.
+ """
if self._extension_loading_task:
await self._extension_loading_task
await super().process_commands(message)