Skip to content

Recover the old voice state in VoiceStateUpdateEvent #352

Answered by samhza
EnoPM asked this question in Help
Discussion options

You must be logged in to vote

I believe PreHandler is what you're looking for. It's executed before the cache is updated, so you'll be able to get the old voice state. The undeleter example shows how it can be used.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@EnoPM
Comment options

@samhza
Comment options

Answer selected by EnoPM
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants