Interface StickerSnowflake
- All Superinterfaces:
ISnowflake
- All Known Subinterfaces:
GuildSticker
,RichSticker
,StandardSticker
,Sticker
,StickerItem
,StickerUnion
Represents an abstract sticker reference by only the sticker ID.
This is used for methods which only need a sticker ID to function, you cannot use this for getting names or similar.
To get information about a sticker by their ID you can use JDA.retrieveSticker(StickerSnowflake)
instead.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StickerSnowflake
fromId
(long id) Creates a sticker snowflake instance which only wraps an ID.static StickerSnowflake
Creates a sticker snowflake instance which only wraps an ID.Methods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getIdLong, getTimeCreated
-
Method Details
-
fromId
Creates a sticker snowflake instance which only wraps an ID.This is primarily used for message sending purposes.
- Parameters:
id
- The sticker id- Returns:
- A sticker snowflake instance
- See Also:
-
fromId
Creates a sticker snowflake instance which only wraps an ID.This is primarily used for message sending purposes.
- Parameters:
id
- The sticker id- Returns:
- A sticker snowflake instance
- Throws:
IllegalArgumentException
- If the provided ID is not a valid snowflake- See Also:
-