Class Activity.Emoji

    • Constructor Detail

      • Emoji

        public Emoji​(String name,
                     long id,
                     boolean animated)
      • Emoji

        public Emoji​(String name)
    • Method Detail

      • getName

        @Nonnull
        public String getName()
        The name of this emoji. This will be the unicode characters for a unicode emoji and the name of the custom emote otherwise.
        Returns:
        The emoji name
        See Also:
        getAsCodepoints()
      • isAnimated

        public boolean isAnimated()
        Whether this emoji is animated. This is always false for unicode emoji.
        Returns:
        True, if this emoji is animated
      • isEmoji

        public boolean isEmoji()
        Whether this is a unicode emoji.
        Returns:
        True, if this is a unicode emoji
      • isEmote

        public boolean isEmote()
        Whether this is a custom emoji (Emote)
        Returns:
        True, if this is a custom emoji
      • getAsMention

        @Nonnull
        public String getAsMention()
        Description copied from interface: IMentionable
        Retrieve a Mention for this Entity. For the public Role (@everyone), this will return the literal string "@everyone".
        Specified by:
        getAsMention in interface IMentionable
        Returns:
        A resolvable mention.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object