From d1873e003e9beda3f0fa6e725a098ae8899643ad Mon Sep 17 00:00:00 2001 From: AZ <104761702+AZthemute@users.noreply.github.com> Date: Thu, 21 May 2026 16:55:54 +0000 Subject: [PATCH] Fix ping protect --- events/ping_protect.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/events/ping_protect.py b/events/ping_protect.py index bab7074..0f1c511 100644 --- a/events/ping_protect.py +++ b/events/ping_protect.py @@ -111,10 +111,7 @@ class PingProtect(commands.GroupCog, name="noping"): INSERT OR IGNORE INTO allowlists (protected_user_id, allowed_user_id) VALUES (?, ?) """, (interaction.user.id, user.id)) - await db.commit()You need the no-pings role to use this.", ephemeral=True) - return - - async with aiosqlite.connect(DB_PATH) as db: + await db.commit() await interaction.response.send_message(f"✅ {user.display_name} can now ping you.", ephemeral=True)