Interface StickerUnion
- All Superinterfaces:
ISnowflake
,RichSticker
,Sticker
,StickerSnowflake
Represents possible
RichSticker
types.
This delegates the sticker methods for a rich sticker type,
but can be converted to a concrete type using either asGuildSticker()
or asStandardSticker()
.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.dv8tion.jda.api.entities.sticker.Sticker
Sticker.StickerFormat, Sticker.Type
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the underlyingGuildSticker
if applicable.Returns the underlyingStandardSticker
if applicable.Methods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getIdLong, getTimeCreated
Methods inherited from interface net.dv8tion.jda.api.entities.sticker.RichSticker
getDescription, getTags, getType
Methods inherited from interface net.dv8tion.jda.api.entities.sticker.Sticker
getFormatType, getIcon, getIconUrl, getName
-
Method Details
-
asStandardSticker
Returns the underlyingStandardSticker
if applicable.- Returns:
- The
StandardSticker
- Throws:
IllegalStateException
- If this is not aStandardSticker
-
asGuildSticker
Returns the underlyingGuildSticker
if applicable.- Returns:
- The
GuildSticker
- Throws:
IllegalStateException
- If this is not aGuildSticker
-