Skip to content

Commit

Permalink
Use the same audit reason as other unmute methods in [p]forceunmute
Browse files Browse the repository at this point in the history
  • Loading branch information
TrustyJAID committed Mar 31, 2024
1 parent 5ad7c75 commit f458505
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion redbot/cogs/mutes/mutes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1518,6 +1518,7 @@ async def forceunmute(
async with ctx.typing():
guild = ctx.guild
author = ctx.author
audit_reason = get_audit_reason(author, reason, shorten=True)
issue_list = []
success_list = []
if guild.id in self._channel_mute_events:
Expand All @@ -1527,7 +1528,9 @@ async def forceunmute(
for user in users:
tasks = []
for channel in guild.channels:
tasks.append(self.channel_unmute_user(guild, channel, author, user, reason))
tasks.append(
self.channel_unmute_user(guild, channel, author, user, audit_reason)
)
results = await bounded_gather(*tasks)
for result in results:
if not result.success:
Expand Down

0 comments on commit f458505

Please sign in to comment.