Interface VoiceChannelManager
- All Superinterfaces:
AudioChannelManager<VoiceChannel,,VoiceChannelManager> AuditableRestAction<Void>,ChannelManager<VoiceChannel,,VoiceChannelManager> ICategorizableChannelManager<VoiceChannel,,VoiceChannelManager> IPermissionContainerManager<VoiceChannel,,VoiceChannelManager> IPositionableChannelManager<VoiceChannel,,VoiceChannelManager> Manager<VoiceChannelManager>,RestAction<Void>
public interface VoiceChannelManager
extends AudioChannelManager<VoiceChannel,VoiceChannelManager>, ICategorizableChannelManager<VoiceChannel,VoiceChannelManager>, IPositionableChannelManager<VoiceChannel,VoiceChannelManager>
-
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
Modifier and TypeMethodDescriptionsetUserLimit(int userLimit) Sets the user-limit of the selectedVoiceChannel.Methods inherited from interface net.dv8tion.jda.api.managers.channel.middleman.AudioChannelManager
setBitrate, setRegionMethods 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, queue, queue, queue, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, submit, submit, submitAfter, submitAfter, zip
-
Method Details
-
setUserLimit
Sets the user-limit of the selectedVoiceChannel.
Provide0to reset the user-limit of theVoiceChannelA channel user-limit must not be negative nor greater than
99!
This is only available toVoiceChannels- Parameters:
userLimit- The new user-limit for the selectedVoiceChannel- Returns:
- ChannelManager for chaining convenience
- Throws:
IllegalStateException- If the selectedGuildChannel's type is notVOICEIllegalArgumentException- If the provided user-limit is negative or greater than99
-