Package org.javacord.core.entity.emoji
Class UnicodeEmojiImpl
- java.lang.Object
-
- org.javacord.core.entity.emoji.UnicodeEmojiImpl
-
- All Implemented Interfaces:
Emoji
,Mentionable
,Specializable<Emoji>
public class UnicodeEmojiImpl extends Object implements Emoji
The representation of a unicodeEmoji
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<CustomEmoji>
asCustomEmoji()
Optional<KnownCustomEmoji>
asKnownCustomEmoji()
Optional<String>
asUnicodeEmoji()
static UnicodeEmojiImpl
fromString(String emoji)
Gets a unicode emoji by its string representation.String
getMentionTag()
boolean
isAnimated()
String
toString()
-
Methods inherited from interface org.javacord.api.entity.emoji.Emoji
equalsEmoji, equalsEmoji, isCustomEmoji, isKnownCustomEmoji, isUnicodeEmoji
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.javacord.api.util.Specializable
as
-
-
-
-
Method Detail
-
fromString
public static UnicodeEmojiImpl fromString(String emoji)
Gets a unicode emoji by its string representation.- Parameters:
emoji
- The emoji string.- Returns:
- The object, representing the emoji from the given string.
-
getMentionTag
public String getMentionTag()
- Specified by:
getMentionTag
in interfaceMentionable
-
asUnicodeEmoji
public Optional<String> asUnicodeEmoji()
- Specified by:
asUnicodeEmoji
in interfaceEmoji
-
asCustomEmoji
public Optional<CustomEmoji> asCustomEmoji()
- Specified by:
asCustomEmoji
in interfaceEmoji
-
asKnownCustomEmoji
public Optional<KnownCustomEmoji> asKnownCustomEmoji()
- Specified by:
asKnownCustomEmoji
in interfaceEmoji
-
isAnimated
public boolean isAnimated()
- Specified by:
isAnimated
in interfaceEmoji
-
-