diff --git a/Cogs/Modules/adminpanel.py b/Cogs/Modules/adminpanel.py index 11e147d0..f0d0cba1 100644 --- a/Cogs/Modules/adminpanel.py +++ b/Cogs/Modules/adminpanel.py @@ -70,10 +70,10 @@ async def on_submit(self, interaction: discord.Interaction): ) return - collection.delete_one(filter) + collection.update_one(filter, {'$set': {'voided': True}}) await interaction.response.edit_message( - content=f"{tick} **{interaction.user.display_name}**, I've revoked the infraction with ID `{id}`", + content=f"{tick} **{interaction.user.display_name}**, I've voided the infraction with ID `{id}`", view=Return(self.user, self.guild, self.author), embed=None, )