Class DeletedMessageImpl

java.lang.Object
com.mewna.catnip.entity.impl.message.DeletedMessageImpl
All Implemented Interfaces:
Entity, DeletedMessage, GuildEntity, HasChannel, HasGuild, Snowflake, Timestamped, RequiresCatnip

public class DeletedMessageImpl extends Object implements DeletedMessage, RequiresCatnip
Since:
10/4/18.
Author:
amy
  • Constructor Details

    • DeletedMessageImpl

      public DeletedMessageImpl()
    • DeletedMessageImpl

      public DeletedMessageImpl(Catnip catnip, long idAsLong, long channelIdAsLong, long guildIdAsLong)
  • 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

    • 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.
    • channelIdAsLong

      public long channelIdAsLong()
      Specified by:
      channelIdAsLong in interface HasChannel
    • 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.
    • idAsLong

      public DeletedMessageImpl idAsLong(long idAsLong)
      Returns:
      this.
    • channelIdAsLong

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

      public DeletedMessageImpl guildIdAsLong(long guildIdAsLong)
      Returns:
      this.