Skip to content

Conversation

PascalNB
Copy link
Contributor

Pull Request Etiquette

Changes

  • Internal code
  • Library interface (affecting end-user code)
  • 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.

@MinnDevelopment MinnDevelopment merged commit f71cab1 into discord-jda:master Feb 2, 2025
1 check passed
@MinnDevelopment MinnDevelopment added this to the v5.3.0 milestone Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants