aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ItsDrike <[email protected]>2020-06-06 12:31:00 +0200
committerGravatar ItsDrike <[email protected]>2020-06-06 12:31:00 +0200
commit858e2e301234862e66ce03ccd71f46518dcc953f (patch)
tree1619c61b6569aa52b767d3774c90e40b1d008425
parentRemove unnecessary schedule_unsilence (diff)
Do not await self.schedule_task
- self.schedule_task shouldn't be awaited as it isn't a coroutine
-rw-r--r--bot/cogs/moderation/silence.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/moderation/silence.py b/bot/cogs/moderation/silence.py
index 8223df491..13f84009f 100644
--- a/bot/cogs/moderation/silence.py
+++ b/bot/cogs/moderation/silence.py
@@ -111,7 +111,7 @@ class Silence(Scheduler, commands.Cog):
delay=duration*60,
)
- await self.schedule_task(ctx.channel.id, channel)
+ self.schedule_task(ctx.channel.id, channel)
@commands.command(aliases=("unhush",))
async def unsilence(self, ctx: Context) -> None: