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

public abstract class GenericGuildStickerEvent extends Event
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 Details

    • GenericGuildStickerEvent

      public GenericGuildStickerEvent(@Nonnull JDA api, long responseNumber, @Nonnull Guild guild, @Nonnull GuildSticker sticker)
  • Method Details

    • getSticker

      @Nonnull public GuildSticker getSticker()
      The relevant GuildSticker for this event
      Returns:
      The sticker
    • getGuild

      @Nonnull public Guild getGuild()
      The Guild this sticker belongs to
      Returns:
      The relevant guild