From b5b8954623ea7450063472e3cd374200536d5b31 Mon Sep 17 00:00:00 2001 From: witherr Date: Sat, 2 Nov 2024 02:44:25 +0530 Subject: [PATCH] Fix being able to trading unmute even if member is not muted --- cogs/moderation.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cogs/moderation.py b/cogs/moderation.py index 8ae9852..cdd1574 100644 --- a/cogs/moderation.py +++ b/cogs/moderation.py @@ -861,6 +861,9 @@ async def tradingunmute(self, ctx, target: discord.Member, *, reason=None): You must have the Trial Moderator role to use this. """ + if not discord.utils.get(target.roles, name="Trading Muted"): + return await ctx.send("This member is not trading muted.") + action = TradingUnmute( target=target, user=ctx.author,