Class GuildStickerUpdateDescriptionEvent
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.sticker.GenericGuildStickerEvent
net.dv8tion.jda.api.events.sticker.update.GenericGuildStickerUpdateEvent<String>
net.dv8tion.jda.api.events.sticker.update.GuildStickerUpdateDescriptionEvent
- All Implemented Interfaces:
GenericEvent, UpdateEvent<GuildSticker, String>
Indicates that the description of a
GuildSticker changed.
Can be used to retrieve the old description
Requirements
This event requires the STICKER CacheFlag to be enabled, which requires
the GUILD_EXPRESSIONS intent.
createLight(String) disables that CacheFlag by default!
Identifier: description
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGuildStickerUpdateDescriptionEvent(JDA api, long responseNumber, Guild guild, GuildSticker sticker, String oldValue) -
Method Summary
Modifier and TypeMethodDescriptionThe new valueThe old valueMethods inherited from class GenericGuildStickerUpdateEvent
getEntity, getPropertyIdentifierMethods inherited from class GenericGuildStickerEvent
getGuild, getStickerMethods inherited from class Event
getJDA, getRawData, getResponseNumber, toStringMethods inherited from interface GenericEvent
getJDA, getRawData, getResponseNumberMethods inherited from interface UpdateEvent
getEntityType
-
Field Details
-
IDENTIFIER
- See Also:
-
-
Constructor Details
-
GuildStickerUpdateDescriptionEvent
public GuildStickerUpdateDescriptionEvent(@Nonnull JDA api, long responseNumber, @Nonnull Guild guild, @Nonnull GuildSticker sticker, @Nonnull String oldValue)
-
-
Method Details
-
getOldValue
Description copied from interface:UpdateEventThe old value- Specified by:
getOldValuein interfaceUpdateEvent<GuildSticker, String>- Overrides:
getOldValuein classGenericGuildStickerUpdateEvent<String>- Returns:
- The old value
-
getNewValue
Description copied from interface:UpdateEventThe new value- Specified by:
getNewValuein interfaceUpdateEvent<GuildSticker, String>- Overrides:
getNewValuein classGenericGuildStickerUpdateEvent<String>- Returns:
- The new value
-