Skip to content

Commit

Permalink
admin panel voiding infractions instead of deleting them
Browse files Browse the repository at this point in the history
  • Loading branch information
bugsbirb committed Feb 20, 2024
1 parent 6650ecb commit 3080c6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cogs/Modules/adminpanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down

0 comments on commit 3080c6c

Please sign in to comment.