aboutsummaryrefslogtreecommitdiffstats
path: root/botcore
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2022-06-26 19:20:30 +0400
committerGravatar Hassan Abouelela <[email protected]>2022-06-26 20:17:17 +0400
commit7b9f3248917f76817b1bdd5cac5fa5110e31d0a7 (patch)
tree770fcdc1781b5902772f63572f820eae0a8ce077 /botcore
parentMerge pull request #86 from python-discord/dependabot/pip/sphinx-autodoc-type... (diff)
Clean Up Startup Ping Function
The function was missing the self arg, which would lead to an exception at startup for any projects that don't override it. It's also not being awaited despite being an async function. Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'botcore')
-rw-r--r--botcore/_bot.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/botcore/_bot.py b/botcore/_bot.py
index e9eba5c5..ed31d624 100644
--- a/botcore/_bot.py
+++ b/botcore/_bot.py
@@ -197,7 +197,7 @@ class BotBase(commands.Bot):
if not guild.roles or not guild.members or not guild.channels:
msg = "Guild available event was dispatched but the cache appears to still be empty!"
- self.log_to_dev_log(msg)
+ await self.log_to_dev_log(msg)
return
self._guild_available.set()
@@ -249,7 +249,7 @@ class BotBase(commands.Bot):
except Exception as e:
raise StartupError(e)
- async def ping_services() -> None:
+ async def ping_services(self) -> None:
"""Ping all required services on setup to ensure they are up before starting."""
...