forked from jmug/stoatchat
chore: switch to ids for parameter
This commit is contained in:
@@ -54,9 +54,7 @@ pub async fn delete(
|
||||
};
|
||||
|
||||
for user_id in get_voice_channel_members(channel.id()).await? {
|
||||
let user = Reference::from_unchecked(user_id).as_user(db).await?;
|
||||
|
||||
voice_client.remove_user(&user, channel.id()).await?;
|
||||
voice_client.remove_user(&user_id, channel.id()).await?;
|
||||
delete_voice_state(channel.id(), channel.server().as_deref(), &user.id).await?;
|
||||
};
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ pub async fn remove_member(
|
||||
};
|
||||
|
||||
if is_in_voice_channel(&user.id, channel.id()).await? {
|
||||
voice_client.remove_user(&user, channel.id()).await?;
|
||||
voice_client.remove_user(&user.id, channel.id()).await?;
|
||||
delete_voice_state(channel.id(), None, &user.id).await?;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user