Class GenericGuildStickerEvent
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.sticker.GenericGuildStickerEvent
- All Implemented Interfaces:
GenericEvent
- Direct Known Subclasses:
GenericGuildStickerUpdateEvent
,GuildStickerAddedEvent
,GuildStickerRemovedEvent
Indicates that an
GuildSticker
was created/removed/updated.
Requirements
These events require the STICKER
CacheFlag to be enabled, which requires
the GUILD_EXPRESSIONS
intent.
createLight(String)
disables that CacheFlag by default!
-
Constructor Summary
ConstructorDescriptionGenericGuildStickerEvent
(JDA api, long responseNumber, Guild guild, GuildSticker sticker) -
Method Summary
Modifier and TypeMethodDescriptiongetGuild()
TheGuild
this sticker belongs toThe relevantGuildSticker
for this eventMethods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getRawData, getResponseNumber, toString
-
Constructor Details
-
GenericGuildStickerEvent
-
-
Method Details
-
getSticker
The relevantGuildSticker
for this event- Returns:
- The sticker
-
getGuild
TheGuild
this sticker belongs to- Returns:
- The relevant guild
-