From 7d147bc0278e500c8682dc5c92e0db1f143da835 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Wed, 13 Dec 2023 16:55:53 -0500 Subject: [PATCH] =?UTF-8?q?fix(moderation):=20I=20forgot=20about=20notes?= =?UTF-8?q?=20=F0=9F=92=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- moderation/moderation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/moderation/moderation.py b/moderation/moderation.py index 388b99b..6380a1f 100644 --- a/moderation/moderation.py +++ b/moderation/moderation.py @@ -407,7 +407,7 @@ class Moderation(commands.Cog): if interaction.user.top_role <= target_member.top_role: await interaction.response.send_message(content="You cannot moderate members with a higher role than you!", ephemeral=True) return - await interaction.response.send_message(content=f"{target.mention} has recieved a note!\n**Reason** - `{reason}`") + message: discord.Message = await interaction.response.send_message(content=f"{target.mention} has recieved a note!\n**Reason** - `{reason}`") if silent is None: silent = not await self.config.guild(interaction.guild).dm_users() if silent is False: @@ -417,6 +417,7 @@ class Moderation(commands.Cog): except discord.errors.HTTPException: pass moderation_id = await self.mysql_log(interaction.guild.id, interaction.user.id, 'NOTE', target.id, 0, 'NULL', reason) + await message.edit(content=f"{target.mention} has received a note! (Case `#{moderation_id}`)\n**Reason** - `{reason}`") await self.log(interaction, moderation_id) @app_commands.command(name="warn")