From f4585053bfa0b2b049bd7148d9bf3faf244c2eac Mon Sep 17 00:00:00 2001 From: TrustyJAID Date: Sun, 31 Mar 2024 15:22:48 -0600 Subject: [PATCH] Use the same audit reason as other unmute methods in `[p]forceunmute` --- redbot/cogs/mutes/mutes.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/redbot/cogs/mutes/mutes.py b/redbot/cogs/mutes/mutes.py index 2968b2b26d4..72bb570d846 100644 --- a/redbot/cogs/mutes/mutes.py +++ b/redbot/cogs/mutes/mutes.py @@ -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: @@ -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: