aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar PureFunctor <[email protected]>2020-11-30 00:47:34 +0800
committerGravatar PureFunctor <[email protected]>2020-11-30 00:47:34 +0800
commit65366ead766fa6533fe6c59310a39ca3ee3a06b2 (patch)
tree6a54a6bf34249d607cfcb4b5d38c4a8a63ac1f3a
parentMerge branch 'master' into pure/feature/infraction-append (diff)
Fix unawaited coroutine in Infraction
-rw-r--r--bot/converters.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/converters.py b/bot/converters.py
index f350e863e..d0a9731d6 100644
--- a/bot/converters.py
+++ b/bot/converters.py
@@ -575,7 +575,7 @@ class Infraction(Converter):
return infractions[0]
else:
- return ctx.bot.api_client.get(f"bot/infractions/{arg}")
+ return await ctx.bot.api_client.get(f"bot/infractions/{arg}")
Expiry = t.Union[Duration, ISODateTime]