Package net.dv8tion.jda.api.entities
Interface SkuSnowflake
- All Superinterfaces:
ISnowflake
Represents an abstract SKU reference by only the SKU ID.
This is used for methods which only need a SKU ID to function, you cannot use this for getting any properties.
-
Method Summary
Modifier and TypeMethodDescriptionstatic SkuSnowflake
fromId
(long id) Creates a SKU instance which only wraps an ID.static SkuSnowflake
Creates a SKU instance which only wraps an ID.Methods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getIdLong, getTimeCreated
-
Method Details
-
fromId
Creates a SKU instance which only wraps an ID.- Parameters:
id
- The SKU id- Returns:
- A SKU snowflake instance
-
fromId
Creates a SKU instance which only wraps an ID.- Parameters:
id
- The SKU id- Returns:
- A SKU snowflake instance
- Throws:
IllegalArgumentException
- If the provided ID is not a valid snowflake
-