Skip to content

Commit

Permalink
Unmute command / removing a mute after X time won't actually do the t…
Browse files Browse the repository at this point in the history
…imeout.
  • Loading branch information
janssensjelle committed Nov 8, 2024
1 parent f89b3d0 commit 06f9767
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/helpers/ban.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ async def unmute_member(guild: Guild, member: Member) -> Member:
# No longer on the server - cleanup, but don't attempt to remove a role
logger.info(f"Remove mute from {member.name}:{member.id}.")
await member.remove_roles(role)
await member.remove_timeout()

async with AsyncSessionLocal() as session:
stmt = select(Mute).filter(Mute.user_id == member.id)
Expand Down

0 comments on commit 06f9767

Please sign in to comment.