diff options
| author | salmonik <salmonik@tuta.io> | 2026-07-30 15:09:51 +0200 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-07-30 15:09:51 +0200 |
| commit | 7a565f377203ba8e01574952014a23dfa8d94fa3 (patch) | |
| tree | 9bf25a5f618fd79b9c9911ea670f9d4b3d2bba99 /src/commands/tts.rs | |
| parent | fix assistant and senator (diff) | |
| download | senator-sperma-7a565f377203ba8e01574952014a23dfa8d94fa3.tar.gz senator-sperma-7a565f377203ba8e01574952014a23dfa8d94fa3.zip | |
fix: auto completion timing out before ready + fix preexisting warns
Diffstat (limited to 'src/commands/tts.rs')
| -rw-r--r-- | src/commands/tts.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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( | |||
| 59 | .await?; | 59 | .await?; |
| 60 | } | 60 | } |
| 61 | OutputMode::Vc => { | 61 | OutputMode::Vc => { |
| 62 | let guild_id = ctx.guild_id().ok_or_else(|| lang::err_not_in_guild())?; | 62 | let guild_id = ctx.guild_id().ok_or_else(lang::err_not_in_guild)?; |
| 63 | let channel_id = ctx | 63 | let channel_id = ctx |
| 64 | .serenity_context() | 64 | .serenity_context() |
| 65 | .cache | 65 | .cache |
| @@ -69,7 +69,7 @@ pub async fn tts( | |||
| 69 | .get(&ctx.author().id) | 69 | .get(&ctx.author().id) |
| 70 | .and_then(|vs| vs.channel_id) | 70 | .and_then(|vs| vs.channel_id) |
| 71 | }) | 71 | }) |
| 72 | .ok_or_else(|| lang::err_not_in_voice())?; | 72 | .ok_or_else(lang::err_not_in_voice)?; |
| 73 | 73 | ||
| 74 | let call = ctx | 74 | let call = ctx |
| 75 | .data() | 75 | .data() |
