diff options
author | 2023-05-06 13:14:27 +0100 | |
---|---|---|
committer | 2023-05-06 13:14:27 +0100 | |
commit | e92119ede9e2829a530e3137b1722e5f5808d8f5 (patch) | |
tree | 5dba336f238f0670d77454e9a6318b291208d9e9 /pydis_core/_bot.py | |
parent | Bump dependencies to latest (diff) | |
parent | Changelog recent changes to bot-core (diff) |
Merge pull request #175 from python-discord/log-when-waiting-for-guild-to-be-availablev9.6.0
Log when waiting for guild to be available
Diffstat (limited to 'pydis_core/_bot.py')
-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: |