diff options
Diffstat (limited to '')
| -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() |
