From f88e81ff8081827f57833f48e20b6b4678254d1c Mon Sep 17 00:00:00 2001 From: Kishor Date: Sat, 24 Jan 2026 03:16:08 +0530 Subject: [PATCH] fixed delete autoresponse --- src/commands/utility.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/commands/utility.rs b/src/commands/utility.rs index 55edadc..c3ebc16 100644 --- a/src/commands/utility.rs +++ b/src/commands/utility.rs @@ -129,8 +129,9 @@ pub async fn delete_auto_response( if let Some(record) = record { if let Some(mut responses) = record.auto_responses { if responses.remove(&msg).is_some() { - db.query("UPDATE type::thing($thing) SET auto_responses = $responses") - .bind(("thing", ("guilds", guild_id.to_string()))) + db.query("UPDATE type::thing($table, $id) SET auto_responses = $responses") + .bind(("table", "guilds")) + .bind(("id", guild_id.to_string())) .bind(("responses", responses)) .await? .check()?;