Package discord4j.core.object.entity
Class Sticker
- java.lang.Object
-
- discord4j.core.object.entity.Sticker
-
- All Implemented Interfaces:
DiscordObject,Entity
public final class Sticker extends Object implements Entity
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSticker.FormatThe format of a sticker.
-
Constructor Summary
Constructors Constructor Description Sticker(GatewayDiscordClient gateway, discord4j.discordjson.json.StickerData data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GatewayDiscordClientgetClient()Returns theGatewayDiscordClientthat created this object.discord4j.discordjson.json.StickerDatagetData()Gets the data of the sticker.StringgetDescription()Gets the description of the sticker.Sticker.FormatgetFormatType()Gets the type of sticker format.SnowflakegetId()Gets the Snowflake that uniquely identifies this entity.StringgetName()Gets the name of the sticker.SnowflakegetPackId()Gets the ID of the pack the sticker is from.List<String>getTags()Gets the list of tags for the sticker.
-
-
-
Constructor Detail
-
Sticker
public Sticker(GatewayDiscordClient gateway, discord4j.discordjson.json.StickerData data)
-
-
Method Detail
-
getId
public Snowflake getId()
Description copied from interface:EntityGets the Snowflake that uniquely identifies this entity.
-
getData
public discord4j.discordjson.json.StickerData getData()
Gets the data of the sticker.- Returns:
- The data of the sticker.
-
getPackId
public Snowflake getPackId()
Gets the ID of the pack the sticker is from.- Returns:
- The ID of the pack the sticker is from.
-
getName
public String getName()
Gets the name of the sticker.- Returns:
- The name of the sticker.
-
getDescription
public String getDescription()
Gets the description of the sticker.- Returns:
- The description of the sticker;
-
getTags
public List<String> getTags()
Gets the list of tags for the sticker.- Returns:
- The list of tags for the sticker.
-
getFormatType
public Sticker.Format getFormatType()
Gets the type of sticker format.- Returns:
- The type of sticker format.
-
getClient
public GatewayDiscordClient getClient()
Description copied from interface:DiscordObjectReturns theGatewayDiscordClientthat created this object. Methods in it are exclusively based on the entity cache orStorein use. Refer to callinggetClient().rest()to access aDiscordClientthat is capable of requesting entities directly from the REST API.- Specified by:
getClientin interfaceDiscordObject- Returns:
- The
GatewayDiscordClientassociated to this object.
-
-