Class ReactionEmoji.Custom

java.lang.Object
discord4j.core.object.reaction.ReactionEmoji
discord4j.core.object.reaction.ReactionEmoji.Custom
Enclosing class:
ReactionEmoji

public static final class ReactionEmoji.Custom extends ReactionEmoji
  • Method Details

    • getId

      public Snowflake getId()
      Gets the id of the emoji.
      Returns:
      The id of the emoji.
    • getName

      public String getName()
      Gets the name of the emoji.
      Returns:
      The name of the emoji.
    • isAnimated

      public boolean isAnimated()
      Gets whether this emoji is animated.
      Returns:
      Whether this emoji is animated.
    • asEmojiData

      public discord4j.discordjson.json.EmojiData asEmojiData()
      Description copied from class: ReactionEmoji
      Converts this ReactionEmoji to a EmojiData.
      Specified by:
      asEmojiData in class ReactionEmoji
      Returns:
      An EmojiData for this emoji.
    • asFormat

      public String asFormat()
      Description copied from class: ReactionEmoji
      Gets the formatted version of this emoji (i.e., to display in the client).
      Specified by:
      asFormat in class ReactionEmoji
      Returns:
      The formatted version of this emoji (i.e., to display in the client).
    • asFormat

      public static String asFormat(boolean isAnimated, String name, Snowflake id)
      Gets the formatted version of this emoji (i.e., to display in the client).
      Parameters:
      isAnimated - Whether the emoji is animated.
      id - The ID of the custom emoji.
      name - The name of the custom emoji.
      Returns:
      The formatted version of this emoji (i.e., to display in the client).
    • toString

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

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object