Skip to content

Commit acdc613

Browse files
committed
Fix bot leaving VC on voice state updates when not lonely
1 parent e891b8e commit acdc613

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tts_events/src/voice_state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub async fn handle(
2525
let bot_id = ctx.cache.current_user().id;
2626
let leave_vc = match &new.member {
2727
// songbird does not clean up state on VC disconnections, so we have to do it here
28-
Some(member) if member.user.id == bot_id => true,
28+
Some(member) if member.user.id == bot_id && new.channel_id.is_none() => true,
2929
Some(_) => check_is_lonely(ctx, bot_id, guild_id, old)?,
3030
None => false,
3131
};

0 commit comments

Comments
 (0)