Emote
, java.util.Formattable
, IFakeable
, IMentionable
, ISnowflake
public interface ListedEmote extends Emote
Guild.retrieveEmotes()
or Guild.retrieveEmoteById(long)
Emote
Modifier and Type | Method | Description |
---|---|---|
User |
getUser() |
The user who created this Emote
|
boolean |
hasUser() |
Whether this Emote has information about the creator.
|
canInteract, canInteract, canInteract, canProvideRoles, delete, getAsMention, getGuild, getImageUrl, getJDA, getManager, getName, getRoles, hasRoles, isAnimated, isManaged
formatTo
getCreationTime, getId, getIdLong
User getUser()
This is only available for manually retrieved emotes from Guild.retrieveEmotes()
and Guild.retrieveEmoteById(long)
.
Requires Permission.MANAGE_EMOTES
.
java.lang.IllegalStateException
- If this emote does not have user informationhasUser()
boolean hasUser()
getUser()
throws an IllegalStateException
.
This is only available for manually retrieved emotes from Guild.retrieveEmotes()
and Guild.retrieveEmoteById(long)
.
Requires Permission.MANAGE_EMOTES
.