Class VoiceStateImpl

java.lang.Object
com.mewna.catnip.entity.impl.user.VoiceStateImpl
All Implemented Interfaces:
Entity, GuildEntity, HasChannel, HasGuild, Timestamped, RequiresCatnip, VoiceState

public class VoiceStateImpl extends Object implements VoiceState, RequiresCatnip
Since:
9/21/18.
Author:
amy
  • Constructor Details

    • VoiceStateImpl

      public VoiceStateImpl()
    • VoiceStateImpl

      public VoiceStateImpl(Catnip catnip, long guildIdAsLong, long channelIdAsLong, long userIdAsLong, String sessionId, boolean deaf, boolean mute, boolean selfDeaf, boolean selfMute, boolean suppress, boolean selfStream, String requestToSpeakTimestampRaw)
  • Method Details

    • catnip

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

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

      public static VoiceStateImpl.VoiceStateImplBuilder builder()
    • 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.
    • 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.
    • channelIdAsLong

      public long channelIdAsLong()
      Specified by:
      channelIdAsLong in interface HasChannel
    • userIdAsLong

      public long userIdAsLong()
      Specified by:
      userIdAsLong in interface VoiceState
      Returns:
      The user's id.
    • sessionId

      public String sessionId()
      Specified by:
      sessionId in interface VoiceState
      Returns:
      The session id for this voice state. Only known for the current user.
    • deaf

      public boolean deaf()
      Specified by:
      deaf in interface VoiceState
      Returns:
      Whether the user has been deafened.
    • mute

      public boolean mute()
      Specified by:
      mute in interface VoiceState
      Returns:
      Whether the user has been muted.
    • selfDeaf

      public boolean selfDeaf()
      Specified by:
      selfDeaf in interface VoiceState
      Returns:
      Whether the user has deafened themself.
    • selfMute

      public boolean selfMute()
      Specified by:
      selfMute in interface VoiceState
      Returns:
      Whether the user has muted themself.
    • suppress

      public boolean suppress()
      Specified by:
      suppress in interface VoiceState
      Returns:
      Whether the user has been suppressed.
    • selfStream

      public boolean selfStream()
      Specified by:
      selfStream in interface VoiceState
      Returns:
      Whether the user is currently streaming (go live).
    • requestToSpeakTimestampRaw

      public String requestToSpeakTimestampRaw()
      Specified by:
      requestToSpeakTimestampRaw in interface VoiceState
    • guildIdAsLong

      public VoiceStateImpl guildIdAsLong(long guildIdAsLong)
      Returns:
      this.
    • channelIdAsLong

      public VoiceStateImpl channelIdAsLong(long channelIdAsLong)
      Returns:
      this.
    • userIdAsLong

      public VoiceStateImpl userIdAsLong(long userIdAsLong)
      Returns:
      this.
    • sessionId

      public VoiceStateImpl sessionId(String sessionId)
      Returns:
      this.
    • deaf

      public VoiceStateImpl deaf(boolean deaf)
      Returns:
      this.
    • mute

      public VoiceStateImpl mute(boolean mute)
      Returns:
      this.
    • selfDeaf

      public VoiceStateImpl selfDeaf(boolean selfDeaf)
      Returns:
      this.
    • selfMute

      public VoiceStateImpl selfMute(boolean selfMute)
      Returns:
      this.
    • suppress

      public VoiceStateImpl suppress(boolean suppress)
      Returns:
      this.
    • selfStream

      public VoiceStateImpl selfStream(boolean selfStream)
      Returns:
      this.
    • requestToSpeakTimestampRaw

      public VoiceStateImpl requestToSpeakTimestampRaw(String requestToSpeakTimestampRaw)
      Returns:
      this.