Package discord4j.core.object.entity
Class PartialSticker
java.lang.Object
discord4j.core.object.entity.PartialSticker
- All Implemented Interfaces:
DiscordObject
,Entity
- Direct Known Subclasses:
Sticker
-
Field Summary
Modifier and TypeFieldDescriptionprotected final GatewayDiscordClient
The gateway associated to this object. -
Constructor Summary
ConstructorDescriptionPartialSticker
(GatewayDiscordClient gateway, discord4j.discordjson.json.PartialStickerData data) -
Method Summary
Modifier and TypeMethodDescriptionReturns theGatewayDiscordClient
that created this object.Gets the type of sticker format.getId()
Gets the Snowflake that uniquely identifies this entity.Gets the URL for this sticker.getName()
Gets the name of the sticker.discord4j.discordjson.json.PartialStickerData
Gets the data of the sticker.
-
Field Details
-
gateway
The gateway associated to this object.
-
-
Constructor Details
-
PartialSticker
public PartialSticker(GatewayDiscordClient gateway, discord4j.discordjson.json.PartialStickerData data)
-
-
Method Details
-
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.
-
getId
Description copied from interface:Entity
Gets the Snowflake that uniquely identifies this entity. -
getName
Gets the name of the sticker.- Returns:
- The name of the sticker.
-
getFormatType
Gets the type of sticker format.- Returns:
- The type of sticker format.
-
getImageUrl
Gets the URL for this sticker.- Returns:
- The URL for this sticker.
-
getStickerData
public discord4j.discordjson.json.PartialStickerData getStickerData()Gets the data of the sticker.- Returns:
- The data of the sticker.
-