fix: return correct error if user is already in a voice channel

This commit is contained in:
Zomatree
2025-10-19 23:25:35 +01:00
parent 59af536e29
commit 6ab264eb36

View File

@@ -35,7 +35,7 @@ pub async fn raise_if_in_voice(user: &User, channel_id: &str) -> Result<()> {
.to_internal_error()?
> 0
{
Err(create_error!(NotConnected))
Err(create_error!(AlreadyConnected))
} else {
Ok(())
}