From bf3827987751b74fd7a77303a339ae48cc6327b4 Mon Sep 17 00:00:00 2001 From: WahPlus Date: Mon, 20 Apr 2026 06:21:07 +0300 Subject: [PATCH] Add actual tag removal --- main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.py b/main.py index b3ab488..d1fafba 100644 --- a/main.py +++ b/main.py @@ -136,6 +136,9 @@ async def remove(interaction: nextcord.Interaction, tag: int): await interaction.send("You need the Manage Server permission to manage tags") return if tag_db[str(interaction.guild_id)] and tag_db[str(interaction.guild_id)][tag]: + tag_db[str(interaction.guild_id)].pop(tag) + with open("db.json", "w") as f: + json.dump(db, f) await interaction.send(f"Tag removed!\n") else: await interaction.send(f"No such tag ")