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 MsetBitrate(int bitrate)Sets the bitrate of the selectedVoiceChannel.MsetRegion(Region region)Sets theRegionof 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 is64000A channel bitrate must not be less than
8000nor 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 notVOICEIllegalArgumentException- If the provided bitrate is less than 8000 or greater thanGuild.getMaxBitrate().- See Also:
Guild.getFeatures()
-
setRegion
@Nonnull @CheckReturnValue M setRegion(Region region)
Sets theRegionof the selectedVoiceChannel.
The default value isRegion.AUTOMATICPossible values are:Region.AUTOMATICRegion.US_WESTRegion.US_EASTRegion.US_CENTRALRegion.US_SOUTHRegion.SINGAPORERegion.SOUTH_AFRICARegion.SYDNEYRegion.EUROPERegion.INDIARegion.SOUTH_KOREARegion.BRAZILRegion.JAPANRegion.RUSSIA
This is only available toVoiceChannels!- Parameters:
region- The newRegion- Returns:
- ChannelManager for chaining convenience
- Throws:
IllegalStateException- If the selectedGuildChannel's type is notVOICEIllegalArgumentException- If the provided Region is not in the list of usable values
-
-