Class GenericSoundboardSoundEvent

java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.soundboard.GenericSoundboardSoundEvent
All Implemented Interfaces:
GenericEvent
Direct Known Subclasses:
GenericSoundboardSoundUpdateEvent, SoundboardSoundCreateEvent, SoundboardSoundDeleteEvent

public abstract class GenericSoundboardSoundEvent extends Event
Indicates that a SoundboardSound was created/deleted/updated.

Requirements
These events require CacheFlag.SOUNDBOARD_SOUNDS to be enabled, which requires GatewayIntent.GUILD_EXPRESSIONS.
createLight(String) disables that CacheFlag by default!

  • Constructor Details

    • GenericSoundboardSoundEvent

      public GenericSoundboardSoundEvent(@Nonnull JDA api, long responseNumber, @Nonnull SoundboardSound soundboardSound)
  • Method Details

    • getGuild

      @Nonnull public Guild getGuild()
      The Guild where the soundboard sound came from
      Returns:
      The origin Guild
    • getSoundboardSound

      @Nonnull public SoundboardSound getSoundboardSound()
      The affected SoundboardSound for this event
      Returns:
      The soundboard sound