Package net.dv8tion.jda.api.events.emoji
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
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEmoji()
The affectedRichCustomEmoji
for this eventgetGuild()
TheGuild
where the emoji came fromboolean
Whether this emoji is managed by an integrationMethods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getResponseNumber
-
Constructor Details
-
GenericEmojiEvent
-
-
Method Details
-
getGuild
TheGuild
where the emoji came from- Returns:
- The origin Guild
-
getEmoji
The affectedRichCustomEmoji
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
-