Add actual tag removal

This commit is contained in:
2026-04-20 06:21:07 +03:00
parent 36d935cd1f
commit bf38279877
+3
View File
@@ -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 ")