From d534f57c2786240bfcb1facb9d594d9adb4a3c13 Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Mon, 24 Jun 2024 03:47:28 +0100 Subject: Add new name kwarg to silencer loop base class initialisation Discord.py 2.4 added an optional name parameter to the base Loop class which our silence notifier loop is based off. We need to pass that, even if it's None, to prevent a missing argument error. --- bot/exts/moderation/silence.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot/exts/moderation/silence.py b/bot/exts/moderation/silence.py index 2852598ca..a299d7eed 100644 --- a/bot/exts/moderation/silence.py +++ b/bot/exts/moderation/silence.py @@ -54,7 +54,8 @@ class SilenceNotifier(tasks.Loop): hours=0, count=None, reconnect=True, - time=MISSING + time=MISSING, + name=None ) self._silenced_channels = {} self._alert_channel = alert_channel -- cgit v1.2.3