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()?;