Package net.dv8tion.jda.api.entities
Interface AudioChannel
- All Superinterfaces:
Channel
,Comparable<GuildChannel>
,Formattable
,GuildChannel
,IMemberContainer
,IMentionable
,ISnowflake
- All Known Subinterfaces:
StageChannel
,VoiceChannel
Represents a Guild Channel that is capable of handling audio.
This is a
This is a
GuildChannel
that contains additional methods present for audio channels- See Also:
-
VoiceChannel
StageChannel
Guild.getVoiceChannelCache()
Guild.getVoiceChannels()
Guild.getVoiceChannelsByName(String, boolean)
Guild.getVoiceChannelById(long)
Guild.getStageChannelCache()
Guild.getStageChannels()
Guild.getStageChannelsByName(String, boolean)
Guild.getStageChannelById(long)
JDA.getVoiceChannelById(long)
JDA.getStageChannelById(long)
-
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 thisAudioChannel
.The raw region name for thisAudioChannel
.Methods inherited from interface net.dv8tion.jda.api.entities.Channel
formatTo, getAsMention, getJDA, getName, getType
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface net.dv8tion.jda.api.entities.GuildChannel
delete, getGuild, getPermissionContainer
Methods inherited from interface net.dv8tion.jda.api.entities.IMemberContainer
getMembers
Methods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getIdLong, getTimeCreated
-
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()
.This is a lazy idempotent getter. The manager is retained after the first call. This getter is not thread-safe and would require guards by the user.
- Specified by:
getManager
in interfaceGuildChannel
- 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.
-
getRegion
TheRegion
of thisAudioChannel
.
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 thisAudioChannel
. This will return null if the region is set to Automatic.- Returns:
- Raw region name
-