From e750297225c81962ecaeea1b54bfacacce990968 Mon Sep 17 00:00:00 2001 From: Niko Date: Sat, 3 Feb 2024 14:22:07 -0700 Subject: [PATCH] GETDEL over GET --- scripty_commands/src/cmds/admin/shutdown.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripty_commands/src/cmds/admin/shutdown.rs b/scripty_commands/src/cmds/admin/shutdown.rs index 3cab5fd..c36392d 100644 --- a/scripty_commands/src/cmds/admin/shutdown.rs +++ b/scripty_commands/src/cmds/admin/shutdown.rs @@ -40,12 +40,12 @@ pub async fn shutdown(ctx: Context<'_>) -> Result<(), Error> { // notify the guild // need to fetch from redis - let webhook_id = scripty_redis::run_transaction::("GET", |f| { + let webhook_id = scripty_redis::run_transaction::("GETDEL", |f| { f.arg(format!("voice:{{{}}}:webhook_id", guild_id)); }) .await .map(WebhookId::new)?; - let webhook_token = scripty_redis::run_transaction::("GET", |f| { + let webhook_token = scripty_redis::run_transaction::("GETDEL", |f| { f.arg(format!("voice:{{{}}}:webhook_token", guild_id)); }) .await?;