Interface AudioChannelManager<T extends AudioChannel,M extends AudioChannelManager<T,M>>
- Type Parameters:
T- The channel typeM- The manager type
- All Superinterfaces:
AuditableRestAction<Void>,ChannelManager<T,,M> ICategorizableChannelManager<T,,M> IPermissionContainerManager<T,,M> IPositionableChannelManager<T,,M> Manager<M>,RestAction<Void>,StandardGuildChannelManager<T,M>
- All Known Subinterfaces:
StageChannelManager,VoiceChannelManager
public interface AudioChannelManager<T extends AudioChannel,M extends AudioChannelManager<T,M>>
extends StandardGuildChannelManager<T,M>
Manager providing functionality common for all
AudioChannels.
Example
manager.setBitrate(48000)
.setRegion(Region.AUTOMATIC)
.queue();
manager.reset(ChannelManager.REGION | ChannelManager.BITRATE)
.setRegion(Region.BRAZIL)
.queue();
- See Also:
-
Field Summary
Fields inherited from interface net.dv8tion.jda.api.requests.restaction.AuditableRestAction
MAX_REASON_LENGTHFields inherited from interface net.dv8tion.jda.api.managers.channel.ChannelManager
APPLIED_TAGS, ARCHIVED, AUTO_ARCHIVE_DURATION, AVAILABLE_TAGS, BITRATE, DEFAULT_LAYOUT, DEFAULT_REACTION, DEFAULT_SORT_ORDER, DEFAULT_THREAD_SLOWMODE, HIDE_MEDIA_DOWNLOAD_OPTIONS, INVITEABLE, LOCKED, NAME, NSFW, PARENT, PERMISSION, PINNED, POSITION, REGION, REQUIRE_TAG, SLOWMODE, TOPIC, TYPE, USERLIMIT -
Method Summary
Modifier and TypeMethodDescriptionsetBitrate(int bitrate) Sets the bitrate of the selectedAudioChannel.Sets theRegionof the selectedAudioChannel.setUserLimit(int userLimit) Sets the user-limit of the selectedAudioChannel.Methods inherited from interface net.dv8tion.jda.api.requests.restaction.AuditableRestAction
reasonMethods inherited from interface net.dv8tion.jda.api.managers.channel.ChannelManager
getChannel, getGuild, reset, reset, setNameMethods inherited from interface net.dv8tion.jda.api.managers.channel.attribute.ICategorizableChannelManager
setParent, sync, syncMethods inherited from interface net.dv8tion.jda.api.managers.channel.attribute.IPermissionContainerManager
clearOverridesAdded, clearOverridesRemoved, putMemberPermissionOverride, putMemberPermissionOverride, putPermissionOverride, putPermissionOverride, putRolePermissionOverride, putRolePermissionOverride, removePermissionOverride, removePermissionOverrideMethods inherited from interface net.dv8tion.jda.api.managers.channel.attribute.IPositionableChannelManager
setPositionMethods inherited from interface net.dv8tion.jda.api.managers.Manager
deadline, reset, setCheck, timeoutMethods 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, onSuccess, queue, queue, queue, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, submit, submit, submitAfter, submitAfter, zip
-
Method Details
-
setBitrate
Sets the bitrate of the selectedAudioChannel.
The default value is64000A channel bitrate must not be less than
8000nor greater thanGuild.getMaxBitrate()!
This is only available toAudioChannels- Parameters:
bitrate- The new bitrate for the selectedAudioChannel- Returns:
- ChannelManager for chaining convenience
- Throws:
IllegalStateException- If the selected channel is not anAudioChannelIllegalArgumentException- If the provided bitrate is less than 8000 or greater thanGuild.getMaxBitrate().- See Also:
-
setUserLimit
Sets the user-limit of the selectedAudioChannel.
Provide0to reset the user-limit of theAudioChannelA channel user-limit must not be negative nor greater than 99 for
VoiceChanneland not greater than 10000 forStageChannel!
This is only available toAudioChannels- Parameters:
userLimit- The new user-limit for the selectedAudioChannel- Returns:
- ChannelManager for chaining convenience
- Throws:
IllegalStateException- If the selected channel is not anAudioChannelIllegalArgumentException- If the provided user-limit is negative or greater than the permitted maximum
-
setRegion
Sets theRegionof the selectedAudioChannel.
The default value isRegion.AUTOMATICPossible values are:Region.AUTOMATICRegion.US_WESTRegion.US_EASTRegion.US_CENTRALRegion.US_SOUTHRegion.SINGAPORERegion.SOUTH_AFRICARegion.SYDNEYRegion.INDIARegion.SOUTH_KOREARegion.BRAZILRegion.JAPANRegion.RUSSIA
This is only available toAudioChannels!- Parameters:
region- The newRegion- Returns:
- ChannelManager for chaining convenience
- Throws:
IllegalStateException- If the selected channel is not anAudioChannelIllegalArgumentException- If the provided Region is not in the list of usable values
-