Class GenericEmojiEvent

java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.emoji.GenericEmojiEvent
All Implemented Interfaces:
GenericEvent
Direct Known Subclasses:
EmojiAddedEvent, EmojiRemovedEvent, GenericEmojiUpdateEvent

public abstract class GenericEmojiEvent extends Event
Indicates that a Custom Emoji was created/removed/updated.

Requirements

These events require the EMOJI CacheFlag to be enabled, which requires the GUILD_EMOJIS_AND_STICKERS intent.
createLight(String) disables that CacheFlag by default!

  • Constructor Details

  • Method Details

    • getGuild

      @Nonnull public Guild getGuild()
      The Guild where the emoji came from
      Returns:
      The origin Guild
    • getEmoji

      @Nonnull public RichCustomEmoji getEmoji()
      The affected RichCustomEmoji for this event
      Returns:
      The emoji
    • isManaged

      public boolean isManaged()
      Whether this emoji is managed by an integration
      Returns:
      True, if this emoji is managed by an integration