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:
-
VoiceChannelStageChannelGuild.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 TypeMethodDescriptionintThe audio bitrate of the voice audio that is transmitted in this channel.AudioChannelManager<?,?> Returns theChannelManagerfor this GuildChannel.default RegionTheRegionof thisAudioChannel.The raw region name for thisAudioChannel.Methods inherited from interface net.dv8tion.jda.api.entities.Channel
formatTo, getAsMention, getJDA, getName, getTypeMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface net.dv8tion.jda.api.entities.GuildChannel
delete, getGuild, getPermissionContainerMethods inherited from interface net.dv8tion.jda.api.entities.IMemberContainer
getMembersMethods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getIdLong, getTimeCreated
-
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().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:
getManagerin 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
TheRegionof thisAudioChannel.
This will returnRegion.AUTOMATICif the region of this channel is set to Automatic.- Returns:
- the
Regionof this channel.
-
getRegionRaw
The raw region name for thisAudioChannel. This will return null if the region is set to Automatic.- Returns:
- Raw region name
-