Class RichStickerImpl
java.lang.Object
net.dv8tion.jda.internal.entities.sticker.StickerItemImpl
net.dv8tion.jda.internal.entities.sticker.RichStickerImpl
- All Implemented Interfaces:
ISnowflake
,RichSticker
,Sticker
,StickerItem
,StickerSnowflake
,StickerUnion
- Direct Known Subclasses:
GuildStickerImpl
,StandardStickerImpl
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.dv8tion.jda.api.entities.sticker.Sticker
Sticker.StickerFormat, Sticker.Type
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionRichStickerImpl
(long id, Sticker.StickerFormat format, String name, Set<String> tags, String description) -
Method Summary
Modifier and TypeMethodDescriptionReturns the underlyingGuildSticker
if applicable.Returns the underlyingStandardSticker
if applicable.The description of the sticker, or empty String if the sticker doesn't have one.getTags()
Set of tags of the sticker.setDescription
(String description) toString()
Methods inherited from class net.dv8tion.jda.internal.entities.sticker.StickerItemImpl
equals, getFormatType, getIdLong, getName, hashCode, setName
Methods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getIdLong, getTimeCreated
Methods inherited from interface net.dv8tion.jda.api.entities.sticker.RichSticker
getType
Methods inherited from interface net.dv8tion.jda.api.entities.sticker.Sticker
getFormatType, getIcon, getIconUrl, getName
-
Constructor Details
-
RichStickerImpl
public RichStickerImpl(long id, Sticker.StickerFormat format, String name, Set<String> tags, String description)
-
-
Method Details
-
asStandardSticker
Description copied from interface:StickerUnion
Returns the underlyingStandardSticker
if applicable.- Specified by:
asStandardSticker
in interfaceStickerUnion
- Returns:
- The
StandardSticker
-
asGuildSticker
Description copied from interface:StickerUnion
Returns the underlyingGuildSticker
if applicable.- Specified by:
asGuildSticker
in interfaceStickerUnion
- Returns:
- The
GuildSticker
-
getTags
Description copied from interface:RichSticker
Set of tags of the sticker. Tags can be used instead of the name of the sticker as aliases.- Specified by:
getTags
in interfaceRichSticker
- Returns:
- Possibly-empty unmodifiable Set of tags of the sticker
-
getDescription
Description copied from interface:RichSticker
The description of the sticker, or empty String if the sticker doesn't have one.- Specified by:
getDescription
in interfaceRichSticker
- Returns:
- Possibly-empty String containing the description of the sticker
-
setTags
-
setDescription
-
toString
- Overrides:
toString
in classStickerItemImpl
-