Class Sticker

All Implemented Interfaces:
DiscordObject, Entity
Direct Known Subclasses:
GuildSticker

public class Sticker extends PartialSticker
  • Constructor Details

    • Sticker

      public Sticker(GatewayDiscordClient gateway, discord4j.discordjson.json.StickerData data)
  • Method Details

    • getData

      public discord4j.discordjson.json.StickerData getData()
      Gets the data of the sticker.
      Returns:
      The data of the sticker.
    • getPackId

      public Optional<Snowflake> 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

      public Optional<String> getDescription()
      Gets the description of the sticker, if present.
      Returns:
      The description of the sticker, if present.
    • getTags

      public List<String> 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

      public Sticker.Type getType()
      Gets the type of sticker.
      Returns:
      The type of sticker.