Skip to content

Commit

Permalink
fixup: Update BotBase.process_commands docstring to be more explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisLovering committed Jul 25, 2023
1 parent 0213817 commit 2da733d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pydis_core/_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,11 @@ async def wait_until_guild_available(self) -> None:
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)
Expand Down

0 comments on commit 2da733d

Please sign in to comment.