JDA icon indicating copy to clipboard operation
JDA copied to clipboard

Add support for setting voice region on channel creation/copy

Open CheesyGamer77 opened this issue 2 years ago • 0 comments

Pull Request Etiquette

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();

CheesyGamer77 avatar Aug 09 '22 14:08 CheesyGamer77