forked from jmug/stoatchat
feat: being moved between voice channels
This commit is contained in:
@@ -54,7 +54,7 @@ pub async fn delete(
|
||||
};
|
||||
|
||||
if let Some(users) = get_voice_channel_members(channel.id()).await? {
|
||||
let node = get_channel_node(channel.id()).await?;
|
||||
let node = get_channel_node(channel.id()).await?.unwrap();
|
||||
|
||||
for user in users {
|
||||
voice_client.remove_user(&node, &user, channel.id()).await?;
|
||||
|
||||
@@ -48,8 +48,8 @@ pub async fn remove_member(
|
||||
};
|
||||
|
||||
if is_in_voice_channel(&user.id, channel.id()).await? {
|
||||
let node = get_channel_node(channel.id()).await?;
|
||||
|
||||
let node = get_channel_node(channel.id()).await?.unwrap();
|
||||
|
||||
voice_client.remove_user(&node, &user.id, channel.id()).await?;
|
||||
delete_voice_state(channel.id(), None, &user.id).await?;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user