diff options
author | 2023-05-06 12:47:55 +0100 | |
---|---|---|
committer | 2023-05-06 12:47:55 +0100 | |
commit | 61abfa9e17b58dc34109be9d134fd026831e5652 (patch) | |
tree | 7a1d47abbd7eea4d62716cc0fea940d5c9d363a7 | |
parent | Bump d.py to 2.2.3 (diff) |
Log when waiting for a guild before loading extensions
-rw-r--r-- | pydis_core/_bot.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pydis_core/_bot.py b/pydis_core/_bot.py index 0d0682f7..b45647f3 100644 --- a/pydis_core/_bot.py +++ b/pydis_core/_bot.py @@ -119,7 +119,10 @@ class BotBase(commands.Bot): async def _load_extensions(self, module: types.ModuleType) -> None: """Load all the extensions within the given module and save them to ``self.all_extensions``.""" + log.info("Waiting for guild %d to be avialable before loading extensions.", self.guild_id) + await self.wait_until_guild_available() + log.info("Loading extensions...") self.all_extensions = walk_extensions(module) for extension in self.all_extensions: |