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_EXPRESSIONS intent.
createLight(String) disables that CacheFlag by default!
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEmoji()The affectedRichCustomEmojifor this eventgetGuild()TheGuildwhere the emoji came frombooleanWhether this emoji is managed by an integrationMethods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getRawData, getResponseNumber, toString
-
Constructor Details
-
GenericEmojiEvent
-
-
Method Details
-
getGuild
TheGuildwhere the emoji came from- Returns:
- The origin Guild
-
getEmoji
The affectedRichCustomEmojifor 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
-