aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-06-24 03:47:28 +0100
committerGravatar Joe Banks <[email protected]>2024-06-24 03:47:28 +0100
commitd534f57c2786240bfcb1facb9d594d9adb4a3c13 (patch)
tree621dee72bfcc955b84017ff0a6505ed94bb5a90b
parentBump pydis-core from 11.1.0 to 11.2.0 (diff)
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.
-rw-r--r--bot/exts/moderation/silence.py3
1 files changed, 2 insertions, 1 deletions
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