Interface AudioChannel
- All Superinterfaces:
Channel,Comparable<GuildChannel>,Formattable,GuildChannel,ICategorizableChannel,ICopyableChannel,IInviteContainer,IMemberContainer,IMentionable,IPermissionContainer,IPositionableChannel,ISnowflake,StandardGuildChannel
- All Known Subinterfaces:
AudioChannelUnion,StageChannel,VoiceChannel
Represents a Guild Channel that is capable of handling audio.
This is a
This is a
StandardGuildChannel that contains additional methods present for audio channels- See Also:
-
VoiceChannelStageChannelGuild.getVoiceChannelCache()IGuildChannelContainer.getVoiceChannels()IGuildChannelContainer.getVoiceChannelsByName(String, boolean)IGuildChannelContainer.getVoiceChannelById(long)Guild.getStageChannelCache()IGuildChannelContainer.getStageChannels()IGuildChannelContainer.getStageChannelsByName(String, boolean)IGuildChannelContainer.getStageChannelById(long)IGuildChannelContainer.getVoiceChannelById(long)IGuildChannelContainer.getStageChannelById(long)
-
Field Summary
Fields inherited from interface net.dv8tion.jda.api.entities.channel.Channel
MAX_NAME_LENGTHFields inherited from interface net.dv8tion.jda.api.entities.channel.middleman.GuildChannel
JUMP_URL -
Method Summary
Modifier and TypeMethodDescriptionintThe audio bitrate of the voice audio that is transmitted in this channel.AudioChannelManager<?,?> Returns theChannelManagerfor this GuildChannel.default RegionTheRegionof this channel.The raw region name for this channel.intThe maximum amount ofMembersthat be in an audio connection within this channel concurrently.Methods inherited from interface net.dv8tion.jda.api.entities.channel.Channel
formatTo, getAsMention, getFlags, getJDA, getName, getTypeMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface net.dv8tion.jda.api.entities.channel.middleman.GuildChannel
delete, getGuild, getJumpUrl, getPermissionContainerMethods inherited from interface net.dv8tion.jda.api.entities.channel.attribute.ICategorizableChannel
getParentCategory, getParentCategoryId, getParentCategoryIdLong, getPositionInCategory, isSyncedMethods inherited from interface net.dv8tion.jda.api.entities.channel.attribute.IInviteContainer
createInvite, retrieveInvitesMethods inherited from interface net.dv8tion.jda.api.entities.channel.attribute.IMemberContainer
getMembersMethods inherited from interface net.dv8tion.jda.api.entities.channel.attribute.IPermissionContainer
getMemberPermissionOverrides, getPermissionOverride, getPermissionOverrides, getRolePermissionOverrides, upsertPermissionOverrideMethods inherited from interface net.dv8tion.jda.api.entities.channel.attribute.IPositionableChannel
getPosition, getPositionRawMethods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getIdLong, getTimeCreatedMethods inherited from interface net.dv8tion.jda.api.entities.channel.middleman.StandardGuildChannel
createCopy, createCopy
-
Method Details
-
getManager
Description copied from interface:GuildChannelReturns theChannelManagerfor this GuildChannel.
In the ChannelManager, you can modify the name, topic and position of this GuildChannel. You modify multiple fields in one request by chaining setters before callingRestAction.queue().- Specified by:
getManagerin interfaceGuildChannel- Specified by:
getManagerin interfaceICategorizableChannel- Specified by:
getManagerin interfaceIPermissionContainer- Specified by:
getManagerin interfaceIPositionableChannel- Specified by:
getManagerin interfaceStandardGuildChannel- Returns:
- The ChannelManager of this GuildChannel
-
getBitrate
int getBitrate()The audio bitrate of the voice audio that is transmitted in this channel. While higher bitrates can be sent to this channel, it will be scaled down by the client.
Default and recommended value is 64000- Returns:
- The audio bitrate of this audio channel.
-
getUserLimit
int getUserLimit()The maximum amount ofMembersthat be in an audio connection within this channel concurrently.
Returns 0 if there is no limit.Moderators with the
VOICE_MOVE_OTHERSpermission can bypass this limit.- Returns:
- The maximum connections allowed in this channel concurrently
-
getRegion
TheRegionof this channel.
This will returnRegion.AUTOMATICif the region of this channel is set to Automatic.- Returns:
- the
Regionof this channel.
-
getRegionRaw
The raw region name for this channel.
This will return null if the region is set to Automatic.- Returns:
- Raw region name, or
nullif the region is set to automatic.
-