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:
-
Field Summary
Fields inherited from interface net.dv8tion.jda.api.entities.channel.Channel
MAX_NAME_LENGTH
Fields inherited from interface net.dv8tion.jda.api.entities.channel.middleman.GuildChannel
JUMP_URL
-
Method Summary
Modifier and TypeMethodDescriptionint
The audio bitrate of the voice audio that is transmitted in this channel.AudioChannelManager
<?, ?> Returns theChannelManager
for this GuildChannel.default Region
TheRegion
of this channel.The raw region name for this channel.int
The maximum amount ofMembers
that 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, getType
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface net.dv8tion.jda.api.entities.channel.middleman.GuildChannel
delete, getGuild, getJumpUrl, getPermissionContainer
Methods inherited from interface net.dv8tion.jda.api.entities.channel.attribute.ICategorizableChannel
getParentCategory, getParentCategoryId, getParentCategoryIdLong, getPositionInCategory, isSynced
Methods inherited from interface net.dv8tion.jda.api.entities.channel.attribute.IInviteContainer
createInvite, retrieveInvites
Methods inherited from interface net.dv8tion.jda.api.entities.channel.attribute.IMemberContainer
getMembers
Methods inherited from interface net.dv8tion.jda.api.entities.channel.attribute.IPermissionContainer
getMemberPermissionOverrides, getPermissionOverride, getPermissionOverrides, getRolePermissionOverrides, upsertPermissionOverride
Methods inherited from interface net.dv8tion.jda.api.entities.channel.attribute.IPositionableChannel
getPosition, getPositionRaw
Methods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getIdLong, getTimeCreated
Methods inherited from interface net.dv8tion.jda.api.entities.channel.middleman.StandardGuildChannel
createCopy, createCopy
-
Method Details
-
getManager
Description copied from interface:GuildChannel
Returns theChannelManager
for 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:
getManager
in interfaceGuildChannel
- Specified by:
getManager
in interfaceICategorizableChannel
- Specified by:
getManager
in interfaceIPermissionContainer
- Specified by:
getManager
in interfaceIPositionableChannel
- Specified by:
getManager
in 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 ofMembers
that be in an audio connection within this channel concurrently.
Returns 0 if there is no limit.Moderators with the
VOICE_MOVE_OTHERS
permission can bypass this limit.- Returns:
- The maximum connections allowed in this channel concurrently
-
getRegion
TheRegion
of this channel.
This will returnRegion.AUTOMATIC
if the region of this channel is set to Automatic.- Returns:
- the
Region
of 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
null
if the region is set to automatic.
-