Package net.dv8tion.jda.api.entities
Interface ListedEmote
-
- All Superinterfaces:
Emote,java.util.Formattable,IMentionable,ISnowflake
public interface ListedEmote extends Emote
Represents an emote retrieved fromGuild.retrieveEmotes()orGuild.retrieveEmoteById(long)- Since:
- 3.8.0
- See Also:
Emote,Guild.retrieveEmote(Emote),Guild.retrieveEmoteById(String),Guild.retrieveEmotes()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UsergetUser()The user who created this EmotebooleanhasUser()Whether this Emote has information about the creator.-
Methods inherited from interface net.dv8tion.jda.api.entities.Emote
canInteract, canInteract, canInteract, canProvideRoles, delete, getAsMention, getGuild, getImageUrl, getJDA, getManager, getName, getRoles, hasRoles, 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 Detail
-
getUser
@Nonnull User getUser()
The user who created this EmoteThis is only available for manually retrieved emotes from
Guild.retrieveEmotes()andGuild.retrieveEmoteById(long).
RequiresPermission.MANAGE_EMOTES.- Returns:
- The user who created this Emote
- Throws:
java.lang.IllegalStateException- If this emote does not have user information- See Also:
hasUser()
-
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.- Returns:
- True, if this emote has an owner
-
-