From 7a565f377203ba8e01574952014a23dfa8d94fa3 Mon Sep 17 00:00:00 2001 From: salmonik Date: Thu, 30 Jul 2026 15:09:51 +0200 Subject: fix: auto completion timing out before ready + fix preexisting warns --- src/commands/tts.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/commands/tts.rs') diff --git a/src/commands/tts.rs b/src/commands/tts.rs index ee13596..4a99539 100644 --- a/src/commands/tts.rs +++ b/src/commands/tts.rs @@ -59,7 +59,7 @@ pub async fn tts( .await?; } OutputMode::Vc => { - let guild_id = ctx.guild_id().ok_or_else(|| lang::err_not_in_guild())?; + let guild_id = ctx.guild_id().ok_or_else(lang::err_not_in_guild)?; let channel_id = ctx .serenity_context() .cache @@ -69,7 +69,7 @@ pub async fn tts( .get(&ctx.author().id) .and_then(|vs| vs.channel_id) }) - .ok_or_else(|| lang::err_not_in_voice())?; + .ok_or_else(lang::err_not_in_voice)?; let call = ctx .data() -- cgit v1.2.3