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

No voice join event for users #217

Open
Woonters opened this issue Jan 11, 2024 · 2 comments
Open

No voice join event for users #217

Woonters opened this issue Jan 11, 2024 · 2 comments
Labels
enhancement New feature or request events Relates to driver event handling/generation.

Comments

@Woonters
Copy link

Songbird version: 0.4

Rust version (rustc -V): 1.75

Serenity version: 0.12.0
...

Description: There is already an event for a user leaving a channel, but none for
one joining. Is it possible to add this as an event?

To clarify that is not the bot joining a channel, but a user joining a channel the bot is in
...

@Woonters
Copy link
Author

I can't add a label at the moment (or at least can't find out how), this should be marked feature request

@FelixMcFelix FelixMcFelix added enhancement New feature or request events Relates to driver event handling/generation. labels Jan 11, 2024
@FelixMcFelix
Copy link
Member

This is something we had before that was sent as a concrete message over the voice gateway. At some point that message stopped being sent on any occasion except the first time a user joins, as far as I can recall. I believe there is another WS payload which might serve a similar function, but we've been burnt before by relying on undocumented opcodes.

Your best bet is to monitor this on the actual gateway half of your bot, where you will receive VoiceStateUpdates for all users assuming you have the right intents and permissions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request events Relates to driver event handling/generation.
Projects
None yet
Development

No branches or pull requests

2 participants