From 3080c6c97cce6833ab5a671a78ea10fb4f82eb22 Mon Sep 17 00:00:00 2001 From: Bugs Date: Tue, 20 Feb 2024 13:47:31 +0000 Subject: [PATCH] admin panel voiding infractions instead of deleting them --- Cogs/Modules/adminpanel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, )