JDA icon indicating copy to clipboard operation
JDA copied to clipboard

Add `Guild#retrieveMemberVoiceState`

Open PascalNB opened this issue 1 year ago • 0 comments

Pull Request Etiquette

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.

PascalNB avatar Sep 12 '24 16:09 PascalNB