VoiceState.channel_id None when it shouldn't be #513
Labels
opinions wanted
Discussion or solution to a problem requested.
possible bug
Proclaimed misbehaviour that has not been confirmed by developers yet.
voice
Related to the `voice` module and `serenity_voice_model` crate.
I have written a simple bot which reacts to voice state updates.
Now when I switch from a normal voice channel to a voice channel with "Connect" permission restricted on discord, the field VoiceState.channel_id is None. But when I already am in that channel, the channel_id is Some and the bot can join the channel.
The bot has the necessary "Connect" permission, and it can join when I have a channel_id to pass.
Serenity version: rev = "722e1cc" on branch v0.6.x (because of issue with openssl 1.1.1)
Rust version (
rustc -V
):rustc 1.33.0 (2aa4c46cf 2019-02-28)
Minimal test case if possible:
voice_state.channel_id
fromfn voice_state_update
EDIT: On a different server with the exact same settings, it seems to work without problems. However, I have written a very similar bot in JS using discord-js and that one can retrieve the channel id and join when doing the exact same test (where the bot using serenity fails), with the same settings on discord.
The text was updated successfully, but these errors were encountered: