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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VoiceChannelManager
setUserLimit(int userLimit)
Sets the user-limit of the selectedVoiceChannel
.-
Methods inherited from interface net.dv8tion.jda.api.managers.channel.middleman.AudioChannelManager
setBitrate, setRegion
-
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.channel.attribute.ICategorizableChannelManager
setParent, sync, sync
-
Methods inherited from interface net.dv8tion.jda.api.managers.channel.attribute.IPermissionContainerManager
clearOverridesAdded, clearOverridesRemoved, putMemberPermissionOverride, putMemberPermissionOverride, putPermissionOverride, putPermissionOverride, putRolePermissionOverride, putRolePermissionOverride, removePermissionOverride, removePermissionOverride
-
Methods inherited from interface net.dv8tion.jda.api.managers.channel.attribute.IPositionableChannelManager
setPosition
-
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
-
setUserLimit
@Nonnull @CheckReturnValue VoiceChannelManager setUserLimit(int userLimit)
Sets the user-limit of the selectedVoiceChannel
.
Provide0
to reset the user-limit of theVoiceChannel
A 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 notVOICE
IllegalArgumentException
- If the provided user-limit is negative or greater than99
-
-