aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/cogs/events.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/bot/cogs/events.py b/bot/cogs/events.py
index 78878dcb9..f0baecd4b 100644
--- a/bot/cogs/events.py
+++ b/bot/cogs/events.py
@@ -123,10 +123,9 @@ class Events:
# Short circuit
return False
- muted_check = any(
+ return any(
infraction["active"] for infraction in infraction_list if infraction["type"].lower() == "mute"
)
- return muted_check
async def on_command_error(self, ctx: Context, e: CommandError):
command = ctx.command