Class SoundboardSoundUpdateEmojiEvent
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.soundboard.GenericSoundboardSoundEvent
net.dv8tion.jda.api.events.soundboard.update.GenericSoundboardSoundUpdateEvent<EmojiUnion>
net.dv8tion.jda.api.events.soundboard.update.SoundboardSoundUpdateEmojiEvent
- All Implemented Interfaces:
GenericEvent, UpdateEvent<SoundboardSound, EmojiUnion>
Indicates that the emoji of a
soundboard sound changed.
Can be used to retrieve the old emoji.
Requirements
This event require CacheFlag.SOUNDBOARD_SOUNDS to be enabled,
which requires GatewayIntent.GUILD_EXPRESSIONS.
createLight(String) disables that CacheFlag by default!
Identifier: "emoji"
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSoundboardSoundUpdateEmojiEvent(JDA api, long responseNumber, SoundboardSound soundboardSound, EmojiUnion oldEmoji) -
Method Summary
Modifier and TypeMethodDescriptionThe new emojiThe new valueThe old emojiThe old valueMethods inherited from class GenericSoundboardSoundUpdateEvent
getEntity, getPropertyIdentifierMethods inherited from class GenericSoundboardSoundEvent
getGuild, getSoundboardSoundMethods inherited from class Event
getJDA, getRawData, getResponseNumber, toStringMethods inherited from interface GenericEvent
getJDA, getRawData, getResponseNumberMethods inherited from interface UpdateEvent
getEntityType
-
Field Details
-
IDENTIFIER
- See Also:
-
-
Constructor Details
-
SoundboardSoundUpdateEmojiEvent
public SoundboardSoundUpdateEmojiEvent(@Nonnull JDA api, long responseNumber, @Nonnull SoundboardSound soundboardSound, EmojiUnion oldEmoji)
-
-
Method Details
-
getOldEmoji
-
getNewEmoji
-
getOldValue
Description copied from interface:UpdateEventThe old value- Specified by:
getOldValuein interfaceUpdateEvent<SoundboardSound, EmojiUnion>- Overrides:
getOldValuein classGenericSoundboardSoundUpdateEvent<EmojiUnion>- Returns:
- The old value
-
getNewValue
Description copied from interface:UpdateEventThe new value- Specified by:
getNewValuein interfaceUpdateEvent<SoundboardSound, EmojiUnion>- Overrides:
getNewValuein classGenericSoundboardSoundUpdateEvent<EmojiUnion>- Returns:
- The new value
-