aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Boris Muratov <[email protected]>2021-03-19 17:57:29 +0200
committerGravatar Boris Muratov <[email protected]>2021-03-19 17:57:29 +0200
commit96003d7e388587a77d6f6424a1aa1c93d059be99 (patch)
treefb72906826dc232d68c5dbff378a763525768260
parentUse ctx.send instead of ctx.channel.send (diff)
Properly await coroutine in post_review
-rw-r--r--bot/exts/recruitment/talentpool/_review.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bot/exts/recruitment/talentpool/_review.py b/bot/exts/recruitment/talentpool/_review.py
index 920728544..5fb1a505f 100644
--- a/bot/exts/recruitment/talentpool/_review.py
+++ b/bot/exts/recruitment/talentpool/_review.py
@@ -76,7 +76,9 @@ class Reviewer:
channel = guild.get_channel(Channels.mod_announcements)
member = guild.get_member(user_id)
if not member:
- channel.send(f"I tried to review the user with ID `{user_id}`, but they don't appear to be on the server 😔")
+ await channel.send(
+ f"I tried to review the user with ID `{user_id}`, but they don't appear to be on the server 😔"
+ )
return
if update_database: