chore: switch to ids for parameter

This commit is contained in:
Zomatree
2025-02-02 13:46:45 +00:00
parent 742eb3bb7d
commit 2593a4272b
8 changed files with 26 additions and 17 deletions

View File

@@ -106,8 +106,8 @@ impl VoiceClient {
.to_internal_error()
}
pub async fn remove_user(&self, user: &User, channel_id: &str) -> Result<()> {
self.rooms.remove_participant(channel_id, &user.id)
pub async fn remove_user(&self, user_id: &str, channel_id: &str) -> Result<()> {
self.rooms.remove_participant(channel_id, user_id)
.await
.to_internal_error()
}