Skip to content

Commit

Permalink
Fix being able to trading unmute even if member is not muted
Browse files Browse the repository at this point in the history
  • Loading branch information
WitherredAway committed Nov 1, 2024
1 parent c0b1231 commit b5b8954
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cogs/moderation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b5b8954

Please sign in to comment.