From 2b0e24a4e98f458fcd5f3249ea880e3ce6d2edc3 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Wed, 4 Oct 2023 13:18:44 -0400 Subject: [PATCH] fix(moderation): fixed allowedmention setting in mute command --- moderation/moderation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moderation/moderation.py b/moderation/moderation.py index 441c7c1..6575c69 100644 --- a/moderation/moderation.py +++ b/moderation/moderation.py @@ -179,7 +179,7 @@ class Moderation(commands.Cog): async def mute(self, ctx: commands.Context, target: discord.Member, duration: str, *, reason: str): """Mute a user.""" if target.is_timed_out() is True: - await ctx.send(f"{target.mention} is already muted!", allowed_mentions=None) + await ctx.send(f"{target.mention} is already muted!", allowed_mentions=discord.AllowedMentions(users=False)) return try: parsed_time = parse(sval=duration, as_timedelta=True, raise_exception=True)