JDA
JDA copied to clipboard
Add `Guild#retrieveMemberVoiceState`
Pull Request Etiquette
- [X] I have checked the PRs for upcoming features/bug fixes.
- [X] I have read the contributing guidelines.
Changes
- [X] Internal code
- [X] Library interface (affecting end-user code)
- [X] Documentation
- [ ] Other: _____
Closes Issue: NaN
Description
Discord recently added an API endpoint to get a user's voice state in a guild (https://discord.com/developers/docs/resources/voice).
Adds Guild#retrieveMemberVoiceState, Guild#retrieveMemberVoiceStateById(long) and Guild#retrieveMemberVoiceStateById(String) that send a request and create a new GuildVoiceState if not already cached.
Also makes changes to EntityBuilder to allow the creation of voice states from JSON and Route for the new endpoint.