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)