Class VoiceChannelImpl

java.lang.Object
com.mewna.catnip.entity.impl.channel.VoiceChannelImpl
All Implemented Interfaces:
Channel, GuildChannel, MessageChannel, TextChannel, VoiceChannel, Entity, GuildEntity, HasGuild, HasName, HasParentChannel, Mentionable, Snowflake, Timestamped, RequiresCatnip

public class VoiceChannelImpl extends Object implements VoiceChannel, RequiresCatnip
Since:
9/12/18
Author:
natanbc
  • Constructor Details

    • VoiceChannelImpl

      public VoiceChannelImpl()
    • VoiceChannelImpl

      public VoiceChannelImpl(Catnip catnip, long idAsLong, String name, long guildIdAsLong, int position, long parentIdAsLong, List<PermissionOverride> overrides, int bitrate, int userLimit)
  • Method Details

    • catnip

      public void catnip(@Nonnull Catnip catnip)
      Specified by:
      catnip in interface RequiresCatnip
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

    • type

      public Channel.ChannelType type()
      Specified by:
      type in interface Channel
      Returns:
      The type of this channel.
    • catnip

      public Catnip catnip()
      Description copied from interface: Entity
      Returns the catnip instance associated with this entity.
      Specified by:
      catnip in interface Entity
      Returns:
      The catnip instance of this entity.
    • idAsLong

      public long idAsLong()
      Description copied from interface: Snowflake
      The ID of this snowflake, as a long.
      Specified by:
      idAsLong in interface Snowflake
      Returns:
      Long representing the ID.
    • name

      public String name()
      Specified by:
      name in interface HasName
    • guildIdAsLong

      public long guildIdAsLong()
      Description copied from interface: HasGuild
      The id of the guild this entity is from.
      Specified by:
      guildIdAsLong in interface HasGuild
      Returns:
      Long representing the guild ID.
    • position

      public int position()
      Specified by:
      position in interface GuildChannel
      Returns:
      The position of the channel.
    • parentIdAsLong

      public long parentIdAsLong()
      Specified by:
      parentIdAsLong in interface HasParentChannel
      Returns:
      The id of the Category that is the parent of this channel. A value of 0 means no parent.
    • overrides

      public List<PermissionOverride> overrides()
      Specified by:
      overrides in interface GuildChannel
      Returns:
      The permission overrides set on this channel. Will never be null, but may be empty.
    • bitrate

      public int bitrate()
      Specified by:
      bitrate in interface VoiceChannel
      Returns:
      The bitrate of this channel. Will be from 8 to 96.
    • userLimit

      public int userLimit()
      Specified by:
      userLimit in interface VoiceChannel
      Returns:
      The maximum number of users allowed in this voice channel at once.
    • idAsLong

      public VoiceChannelImpl idAsLong(long idAsLong)
      Returns:
      this.
    • name

      public VoiceChannelImpl name(String name)
      Returns:
      this.
    • guildIdAsLong

      public VoiceChannelImpl guildIdAsLong(long guildIdAsLong)
      Returns:
      this.
    • position

      public VoiceChannelImpl position(int position)
      Returns:
      this.
    • parentIdAsLong

      public VoiceChannelImpl parentIdAsLong(long parentIdAsLong)
      Returns:
      this.
    • overrides

      public VoiceChannelImpl overrides(List<PermissionOverride> overrides)
      Returns:
      this.
    • bitrate

      public VoiceChannelImpl bitrate(int bitrate)
      Returns:
      this.
    • userLimit

      public VoiceChannelImpl userLimit(int userLimit)
      Returns:
      this.