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 class
Sticker.Format
The 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 GatewayDiscordClient
getClient()
Returns theGatewayDiscordClient
that created this object.discord4j.discordjson.json.StickerData
getData()
Gets the data of the sticker.String
getDescription()
Gets the description of the sticker.Sticker.Format
getFormatType()
Gets the type of sticker format.Snowflake
getId()
Gets the Snowflake that uniquely identifies this entity.String
getName()
Gets the name of the sticker.Snowflake
getPackId()
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:Entity
Gets 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:DiscordObject
Returns theGatewayDiscordClient
that created this object. Methods in it are exclusively based on the entity cache orStore
in use. Refer to callinggetClient().rest()
to access aDiscordClient
that is capable of requesting entities directly from the REST API.- Specified by:
getClient
in interfaceDiscordObject
- Returns:
- The
GatewayDiscordClient
associated to this object.
-
-