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 Sticker
Sticker.StickerFormat, Sticker.Type -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the underlyingGuildStickerif applicable.Returns the underlyingStandardStickerif applicable.Methods inherited from interface ISnowflake
getId, getIdLong, getTimeCreatedMethods inherited from interface RichSticker
getDescription, getTags, getTypeMethods inherited from interface 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
-