Interface AudioChannelManager<T extends AudioChannel,M extends AudioChannelManager<T,M>>
-
- All Superinterfaces:
AuditableRestAction<Void>
,ChannelManager<T,M>
,Manager<M>
,RestAction<Void>
- All Known Subinterfaces:
StageChannelManager
,VoiceChannelManager
public interface AudioChannelManager<T extends AudioChannel,M extends AudioChannelManager<T,M>> extends ChannelManager<T,M>
-
-
Field Summary
-
Fields inherited from interface net.dv8tion.jda.api.managers.channel.ChannelManager
ARCHIVED, AUTO_ARCHIVE_DURATION, BITRATE, INVITEABLE, LOCKED, NAME, NSFW, PARENT, PERMISSION, POSITION, REGION, SLOWMODE, TOPIC, TYPE, USERLIMIT
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description M
setBitrate(int bitrate)
Sets the bitrate of the selectedVoiceChannel
.M
setRegion(Region region)
Sets theRegion
of the selectedVoiceChannel
.-
Methods inherited from interface net.dv8tion.jda.api.requests.restaction.AuditableRestAction
reason
-
Methods inherited from interface net.dv8tion.jda.api.managers.channel.ChannelManager
getChannel, getGuild, reset, reset, setName
-
Methods inherited from interface net.dv8tion.jda.api.managers.Manager
deadline, reset, setCheck, timeout
-
Methods inherited from interface net.dv8tion.jda.api.requests.RestAction
addCheck, and, and, complete, complete, completeAfter, delay, delay, delay, delay, flatMap, flatMap, getCheck, getJDA, map, mapToResult, onErrorFlatMap, onErrorFlatMap, onErrorMap, onErrorMap, queue, queue, queue, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, submit, submit, submitAfter, submitAfter, zip
-
-
-
-
Method Detail
-
setBitrate
@Nonnull @CheckReturnValue M setBitrate(int bitrate)
Sets the bitrate of the selectedVoiceChannel
.
The default value is64000
A channel bitrate must not be less than
8000
nor greater thanGuild.getMaxBitrate()
!
This is only available toVoiceChannels
- Parameters:
bitrate
- The new bitrate for the selectedVoiceChannel
- Returns:
- ChannelManager for chaining convenience
- Throws:
IllegalStateException
- If the selectedGuildChannel
's type is notVOICE
IllegalArgumentException
- If the provided bitrate is less than 8000 or greater thanGuild.getMaxBitrate()
.- See Also:
Guild.getFeatures()
-
setRegion
@Nonnull @CheckReturnValue M setRegion(Region region)
Sets theRegion
of the selectedVoiceChannel
.
The default value isRegion.AUTOMATIC
Possible values are:Region.AUTOMATIC
Region.US_WEST
Region.US_EAST
Region.US_CENTRAL
Region.US_SOUTH
Region.SINGAPORE
Region.SOUTH_AFRICA
Region.SYDNEY
Region#EUROPE
Region.INDIA
Region.SOUTH_KOREA
Region.BRAZIL
Region.JAPAN
Region.RUSSIA
This is only available toVoiceChannels
!- Parameters:
region
- The newRegion
- Returns:
- ChannelManager for chaining convenience
- Throws:
IllegalStateException
- If the selectedGuildChannel
's type is notVOICE
IllegalArgumentException
- If the provided Region is not in the list of usable values
-
-