Package discord4j.core.object.entity
Class Sticker
java.lang.Object
discord4j.core.object.entity.PartialSticker
discord4j.core.object.entity.Sticker
- All Implemented Interfaces:
DiscordObject
,Entity
- Direct Known Subclasses:
GuildSticker
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The format of a sticker.static enum
The type of sticker. -
Field Summary
Fields inherited from class discord4j.core.object.entity.PartialSticker
gateway
-
Constructor Summary
ConstructorDescriptionSticker
(GatewayDiscordClient gateway, discord4j.discordjson.json.StickerData data) -
Method Summary
Modifier and TypeMethodDescriptiondiscord4j.discordjson.json.StickerData
getData()
Gets the data of the sticker.Gets the description of the sticker, if present.Gets the ID of the pack the sticker is from, if present.getTags()
Gets the list of tags for the sticker.getType()
Gets the type of sticker.boolean
Gets whether this sticker is available for use.Methods inherited from class discord4j.core.object.entity.PartialSticker
getClient, getFormatType, getId, getImageUrl, getName, getStickerData
-
Constructor Details
-
Sticker
-
-
Method Details
-
getData
public discord4j.discordjson.json.StickerData getData()Gets the data of the sticker.- Returns:
- The data of the sticker.
-
getPackId
Gets the ID of the pack the sticker is from, if present.- Returns:
- The ID of the pack the sticker is from, if present.
-
getDescription
Gets the description of the sticker, if present.- Returns:
- The description of the sticker, if present.
-
getTags
Gets the list of tags for the sticker.- Returns:
- The list of tags for the sticker.
-
isAvailable
public boolean isAvailable()Gets whether this sticker is available for use.- Returns:
true
if this sticker is available,false
otherwise (due to loss of Server Boosts for example).
-
getType
Gets the type of sticker.- Returns:
- The type of sticker.
-