Class ApplicationEmojiImpl
java.lang.Object
net.dv8tion.jda.internal.entities.emoji.ApplicationEmojiImpl
- All Implemented Interfaces:
Formattable
,ApplicationEmoji
,CustomEmoji
,Emoji
,EmojiUnion
,IMentionable
,ISnowflake
,SerializableData
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.dv8tion.jda.api.entities.emoji.Emoji
Emoji.Type
-
Field Summary
Fields inherited from interface net.dv8tion.jda.api.entities.emoji.ApplicationEmoji
MAX_APPLICATION_EMOJIS
Fields inherited from interface net.dv8tion.jda.api.entities.emoji.CustomEmoji
EMOJI_NAME_MAX_LENGTH, ICON_URL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the underlyingApplicationEmoji
if applicable.asCustom()
Returns the underlyingCustomEmoji
if applicable.asRich()
Returns the underlyingRichCustomEmoji
if applicable.Returns the underlyingUnicodeEmoji
if applicable.delete()
Deletes this emoji.boolean
The reaction code for this emoji.long
The Snowflake id of this entity.getJDA()
TheJDA
instance of this emojiTheManager
for this emoji, used to modify properties of the emoji like name.getName()
The name of this emoji.getOwner()
The user who created this emojigetType()
TheEmoji.Type
of this emoji.int
hashCode()
boolean
Whether this emoji is animated.setAnimated
(boolean animated) toData()
SerializedDataObject
for this object.toString()
Methods inherited from interface net.dv8tion.jda.api.entities.emoji.CustomEmoji
formatTo, getAsMention, getFormatted, getImage, getImageUrl
Methods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getTimeCreated
-
Constructor Details
-
ApplicationEmojiImpl
-
-
Method Details
-
getType
Description copied from interface:Emoji
TheEmoji.Type
of this emoji.- Specified by:
getType
in interfaceCustomEmoji
- Specified by:
getType
in interfaceEmoji
- Returns:
- The
Emoji.Type
-
getAsReactionCode
Description copied from interface:Emoji
The reaction code for this emoji.
For unicode emojis this will be the unicode of said emoji rather than an alias like:smiley:
.
For custom emojis this will be the name and id of said emoji in the format<name>:<id>
.- Specified by:
getAsReactionCode
in interfaceEmoji
- Returns:
- The unicode if it is an emoji, or the name and id in the format
<name>:<id>
-
toData
Description copied from interface:SerializableData
SerializedDataObject
for this object.- Specified by:
toData
in interfaceSerializableData
- Returns:
DataObject
-
getName
Description copied from interface:Emoji
The name of this emoji.
This will be the unicode characters if this emoji is not ofEmoji.getType()
CUSTOM
. -
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 interfaceISnowflake
- Returns:
- Long containing the Id.
-
getJDA
Description copied from interface:ApplicationEmoji
TheJDA
instance of this emoji- Specified by:
getJDA
in interfaceApplicationEmoji
- Returns:
- The JDA instance of this emoji
-
getOwner
Description copied from interface:ApplicationEmoji
The user who created this emoji- Specified by:
getOwner
in interfaceApplicationEmoji
- Returns:
- The user who created this emoji
-
getManager
Description copied from interface:ApplicationEmoji
TheManager
for this emoji, used to modify properties of the emoji like name.- Specified by:
getManager
in interfaceApplicationEmoji
- Returns:
- The ApplicationEmojiManager for this emoji
-
isAnimated
public boolean isAnimated()Description copied from interface:CustomEmoji
Whether this emoji is animated.- Specified by:
isAnimated
in interfaceCustomEmoji
- Returns:
- True, if this emoji is animated
-
delete
Description copied from interface:ApplicationEmoji
Deletes this emoji.Possible ErrorResponses include:
UNKNOWN_EMOJI
If this emoji was already removed
- Specified by:
delete
in interfaceApplicationEmoji
- Returns:
RestAction
The RestAction to delete this emoji.
-
setName
-
setAnimated
-
equals
-
hashCode
public int hashCode() -
toString
-
asUnicode
Description copied from interface:EmojiUnion
Returns the underlyingUnicodeEmoji
if applicable.- Specified by:
asUnicode
in interfaceEmojiUnion
- Returns:
- The
UnicodeEmoji
-
asCustom
Description copied from interface:EmojiUnion
Returns the underlyingCustomEmoji
if applicable.- Specified by:
asCustom
in interfaceEmojiUnion
- Returns:
- The
CustomEmoji
-
asRich
Description copied from interface:EmojiUnion
Returns the underlyingRichCustomEmoji
if applicable.- Specified by:
asRich
in interfaceEmojiUnion
- Returns:
- The
RichCustomEmoji
-
asApplication
Description copied from interface:EmojiUnion
Returns the underlyingApplicationEmoji
if applicable.- Specified by:
asApplication
in interfaceEmojiUnion
- Returns:
- The
ApplicationEmoji
-