diff options
| author | 2020-09-24 17:46:10 +0800 | |
|---|---|---|
| committer | 2020-09-24 17:46:10 +0800 | |
| commit | 4ce59c673c035550ba4f2e55e79faba17002d40c (patch) | |
| tree | e0bfe54924667eb00613788e02f47d1495fe8674 | |
| parent | Refactor routine for obtaining latest infraction (diff) | |
Fix unawaited coroutine
| -rw-r--r-- | bot/exts/moderation/infraction/management.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/moderation/infraction/management.py b/bot/exts/moderation/infraction/management.py index b841b11c3..e35ebcbef 100644 --- a/bot/exts/moderation/infraction/management.py +++ b/bot/exts/moderation/infraction/management.py @@ -77,7 +77,7 @@ class ModManagement(commands.Cog): old_infraction = await self.get_latest_infraction(ctx.author.id) if old_infraction is None: - ctx.send( + await ctx.send( ":x: Couldn't find most recent infraction; you have never given an infraction." ) return @@ -128,7 +128,7 @@ class ModManagement(commands.Cog): old_infraction = await self.get_latest_infraction(ctx.author.id) if old_infraction is None: - ctx.send( + await ctx.send( ":x: Couldn't find most recent infraction; you have never given an infraction." ) return |