Package net.dv8tion.jda.api.entities
Interface ListedEmote
- All Superinterfaces:
Emote
,Formattable
,IMentionable
,ISnowflake
Represents an emote retrieved from
Guild.retrieveEmotes()
or Guild.retrieveEmoteById(long)
- Since:
- 3.8.0
- See Also:
-
Field Summary
-
Method Summary
Methods inherited from interface net.dv8tion.jda.api.entities.Emote
canInteract, canInteract, canInteract, canProvideRoles, delete, getAsMention, getGuild, getImageUrl, getJDA, getManager, getName, getRoles, isAnimated, isAvailable, isManaged
Methods inherited from interface net.dv8tion.jda.api.entities.IMentionable
formatTo
Methods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getIdLong, getTimeCreated
-
Method Details
-
getUser
The user who created this EmoteThis is only available for manually retrieved emotes from
Guild.retrieveEmotes()
andGuild.retrieveEmoteById(long)
.
RequiresPermission.MANAGE_EMOTES_AND_STICKERS
.- Returns:
- The user who created this Emote
- Throws:
IllegalStateException
- If this emote does not have user information- See Also:
-
hasUser
boolean hasUser()Whether this Emote has information about the creator.
If this is false,getUser()
throws anIllegalStateException
.This is only available for manually retrieved emotes from
Guild.retrieveEmotes()
andGuild.retrieveEmoteById(long)
.
RequiresPermission.MANAGE_EMOTES_AND_STICKERS
.- Returns:
- True, if this emote has an owner
-