Class SoundboardSoundUpdateNameEvent
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.soundboard.GenericSoundboardSoundEvent
net.dv8tion.jda.api.events.soundboard.update.GenericSoundboardSoundUpdateEvent<String>
net.dv8tion.jda.api.events.soundboard.update.SoundboardSoundUpdateNameEvent
- All Implemented Interfaces:
GenericEvent, UpdateEvent<SoundboardSound, String>
Indicates that the name of a
soundboard sound changed.
Can be used to retrieve the old name.
Requirements
This event require CacheFlag.SOUNDBOARD_SOUNDS to be enabled,
which requires GatewayIntent.GUILD_EXPRESSIONS.
createLight(String) disables that CacheFlag by default!
Identifier: "name"
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSoundboardSoundUpdateNameEvent(JDA api, long responseNumber, SoundboardSound soundboardSound, String oldName) -
Method Summary
Modifier and TypeMethodDescriptionThe new nameThe new valueThe old nameThe 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
-
SoundboardSoundUpdateNameEvent
public SoundboardSoundUpdateNameEvent(@Nonnull JDA api, long responseNumber, @Nonnull SoundboardSound soundboardSound, @Nonnull String oldName)
-
-
Method Details
-
getOldName
-
getNewName
-
getOldValue
Description copied from interface:UpdateEventThe old value- Specified by:
getOldValuein interfaceUpdateEvent<SoundboardSound, String>- Overrides:
getOldValuein classGenericSoundboardSoundUpdateEvent<String>- Returns:
- The old value
-
getNewValue
Description copied from interface:UpdateEventThe new value- Specified by:
getNewValuein interfaceUpdateEvent<SoundboardSound, String>- Overrides:
getNewValuein classGenericSoundboardSoundUpdateEvent<String>- Returns:
- The new value
-