Interface VoiceChannel

All Superinterfaces:
Channel, Entity, GuildChannel, GuildEntity, HasGuild, HasName, HasParentChannel, Mentionable, MessageChannel, Snowflake, TextChannel, Timestamped
All Known Subinterfaces:
StageChannel
All Known Implementing Classes:
StageChannelImpl, VoiceChannelImpl

public interface VoiceChannel extends TextChannel
A voice channel in a guild.
Since:
9/12/18
Author:
natanbc
  • Method Details

    • bitrate

      @CheckReturnValue int bitrate()
      Returns:
      The bitrate of this channel. Will be from 8 to 96.
    • userLimit

      @CheckReturnValue int userLimit()
      Returns:
      The maximum number of users allowed in this voice channel at once.
    • openVoiceConnection

      default void openVoiceConnection()
      Opens a voice connection to this channel. This method is equivalent to channel.catnip().{@link com.mewna.catnip.Catnip#openVoiceConnection(String, String) openVoiceConnection}(channel.guildId(), channel.id())
      See Also:
    • isText

      @CheckReturnValue default boolean isText()
      Specified by:
      isText in interface Channel
      Specified by:
      isText in interface TextChannel
      Returns:
      Whether or not this channel is a text channel.
    • isVoice

      @CheckReturnValue default boolean isVoice()
      Specified by:
      isVoice in interface Channel
      Specified by:
      isVoice in interface TextChannel
      Returns:
      Whether or not this channel is a voice channel.
    • isCategory

      @CheckReturnValue default boolean isCategory()
      Specified by:
      isCategory in interface Channel
      Specified by:
      isCategory in interface TextChannel
      Returns:
      Whether or not this channel is a category.
    • topic

      @Nullable default String topic()
      Voice channels will never have a topic.
      Specified by:
      topic in interface TextChannel
      Returns:
      null
    • nsfw

      default boolean nsfw()
      Specified by:
      nsfw in interface TextChannel
      Returns:
      Whether or not this channel has been marked as nsfw.
    • rateLimitPerUser

      default int rateLimitPerUser()
      Description copied from interface: TextChannel
      The slowmode set on this channel. A value of 0 means no slowmode. Bots are not affected by slowmode.
      Specified by:
      rateLimitPerUser in interface TextChannel
      Returns:
      The slowmode set on this channel, in seconds.