Skip to content
This repository was archived by the owner on Jun 17, 2025. It is now read-only.

Commit f1f10da

Browse files
committed
Use SET not SETEX
1 parent 4174203 commit f1f10da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripty_bot_utils/src/handler/normal/voice_state_update.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ pub async fn voice_state_update(ctx: &Context, new: &VoiceState) {
254254
debug!(%guild_id, "got a Dropped/TimedOut error, disabling auto join for five minutes");
255255

256256
// set a key that expires after 5 minutes to disable auto join temporarily
257-
if let Err(e) = scripty_redis::run_transaction::<()>("SETEX", |cmd| {
257+
if let Err(e) = scripty_redis::run_transaction::<()>("SET", |cmd| {
258258
cmd.arg(format!("guild_{{{}}}_auto_join_disabled", guild_id.get()))
259259
.arg(true)
260260
.arg("EX")

0 commit comments

Comments
 (0)