Class MessageReaction.ReactionEmote

  • All Implemented Interfaces:
    ISnowflake
    Enclosing class:
    MessageReaction

    public static class MessageReaction.ReactionEmote
    extends java.lang.Object
    implements ISnowflake
    Represents an Emoji/Emote of a MessageReaction
    This is used to wrap both emojis and emotes
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      Emote getEmote()
      The instance of Emote for the Reaction instance.
      java.lang.String getId()
      The Snowflake id of this entity.
      long getIdLong()
      The Snowflake id of this entity.
      JDA getJDA()
      The current JDA instance for the Reaction
      java.lang.String getName()
      The name for this emote/emoji
      For unicode emojis this will be the unicode of said emoji.
      boolean isEmote()
      Whether this is an Emote wrapper.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ReactionEmote

        public ReactionEmote​(java.lang.String name,
                             java.lang.Long id,
                             JDA api)
      • ReactionEmote

        public ReactionEmote​(Emote emote)
    • Method Detail

      • isEmote

        public boolean isEmote()
        Whether this is an Emote wrapper.
        Returns:
        True, if getId() is not null
      • getId

        public java.lang.String getId()
        Description copied from interface: ISnowflake
        The Snowflake id of this entity. This is unique to every entity and will never change.
        Specified by:
        getId in interface ISnowflake
        Returns:
        Never-null String containing the Id.
      • getIdLong

        public long getIdLong()
        Description copied from interface: ISnowflake
        The Snowflake id of this entity. This is unique to every entity and will never change.
        Specified by:
        getIdLong in interface ISnowflake
        Returns:
        Long containing the Id.
      • getName

        public java.lang.String getName()
        The name for this emote/emoji
        For unicode emojis this will be the unicode of said emoji.
        Returns:
        The name for this emote/emoji
      • getEmote

        public Emote getEmote()
        The instance of Emote for the Reaction instance.
        Might be null if getId() returns null.
        Returns:
        The possibly-null Emote for the Reaction instance
      • getJDA

        public JDA getJDA()
        The current JDA instance for the Reaction
        Returns:
        The JDA instance of the Reaction
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object