Skip to content

Commit

Permalink
GETDEL over GET
Browse files Browse the repository at this point in the history
  • Loading branch information
tazz4843 committed Feb 3, 2024
1 parent aaaa569 commit e750297
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripty_commands/src/cmds/admin/shutdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<u64>("GET", |f| {
let webhook_id = scripty_redis::run_transaction::<u64>("GETDEL", |f| {
f.arg(format!("voice:{{{}}}:webhook_id", guild_id));
})
.await
.map(WebhookId::new)?;
let webhook_token = scripty_redis::run_transaction::<String>("GET", |f| {
let webhook_token = scripty_redis::run_transaction::<String>("GETDEL", |f| {
f.arg(format!("voice:{{{}}}:webhook_token", guild_id));
})
.await?;
Expand Down

0 comments on commit e750297

Please sign in to comment.