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")