Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skipping VoiceSpeakingUpdate #1554

Open
YeahNotSewerSide opened this issue Aug 13, 2024 · 0 comments
Open

Skipping VoiceSpeakingUpdate #1554

YeahNotSewerSide opened this issue Aug 13, 2024 · 0 comments

Comments

@YeahNotSewerSide
Copy link

How to reproduce:
If there is a user in the voice channel and this user has talking status at all times and the bot connects with ChannelVoiceJoin, after this function is called AddHandler, setting a handler for VoiceSpeakingUpdate, it skips updates for the already speaking user.

After some digging, the problem lies in WaitUntilConnected function, this line in fact.

I made a simple work-around by injecting a handler directly to the ChannelVoiceJoin function(attached image) but that's not an optimal solution. Using a raw ChannelVoiceJoinManual didn't get any results, since VoiceConnection has private fields, mute, deaf, session etc and cannot be properly created outside of the module, I assume.

The proper fix should do something with WaitUntilConnected function, I think.

work-around

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant