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 underlyingGuildStickerif applicable.Returns the underlyingStandardStickerif applicable.Methods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getIdLong, getTimeCreatedMethods inherited from interface net.dv8tion.jda.api.entities.sticker.RichSticker
getDescription, getTags, getTypeMethods inherited from interface net.dv8tion.jda.api.entities.sticker.Sticker
getFormatType, getIcon, getIconUrl, getName
-
Method Details
-
asStandardSticker
Returns the underlyingStandardStickerif applicable.- Returns:
- The
StandardSticker - Throws:
IllegalStateException- If this is not aStandardSticker
-
asGuildSticker
Returns the underlyingGuildStickerif applicable.- Returns:
- The
GuildSticker - Throws:
IllegalStateException- If this is not aGuildSticker
-