From 4cbf552204c623a0f574de71e097a569296b2ef4 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 5 Oct 2023 09:40:41 -0400 Subject: [PATCH] fix(moderation): added reason to target.timeout in mute method --- moderation/moderation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moderation/moderation.py b/moderation/moderation.py index 6529e7e..245f439 100644 --- a/moderation/moderation.py +++ b/moderation/moderation.py @@ -233,7 +233,7 @@ class Moderation(commands.Cog): if parsed_time.total_seconds() / 1000 > 2419200000: await interaction.response.send_message("Please provide a duration that is less than 28 days.") return - await target.timeout(parsed_time) + await target.timeout(parsed_time, reason=f"Muted by {interaction.user.id} for: {reason}") await interaction.response.send_message(content=f"{target.mention} has been muted for {humanize.precisedelta(parsed_time)}!\n**Reason** - `{reason}`") try: embed = await self.embed_factory('message', interaction.guild, reason, 'muted', await interaction.original_response(), parsed_time)