JDA
JDA copied to clipboard
Add support for setting voice region on channel creation/copy
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)
- [ ] Documentation
- [ ] Other: _____
Closes Issue: #2208
Description
This PR adds support for users to set the voice region of audio channels on creation/copy. Closes #2208
Example Code
// also works with `createStageChannel`
guild.createVoiceChannel("brazil").setRegion(Region.BRAZIL) // creates a voice channel, with Brazil region
.flatmap(channel -> channel.createCopy().setName("brazil 2")) // creates a second voice channel, also Brazil region
.queue();