Class ModalExceptionEvent

java.lang.Object
xyz.dynxsty.dih4jda.events.DIH4JDAEvent<net.dv8tion.jda.api.interactions.modals.ModalInteraction>
xyz.dynxsty.dih4jda.events.DIH4JDAThrowableEvent<net.dv8tion.jda.api.interactions.modals.ModalInteraction>
xyz.dynxsty.dih4jda.events.ModalExceptionEvent

public class ModalExceptionEvent extends DIH4JDAThrowableEvent<net.dv8tion.jda.api.interactions.modals.ModalInteraction>
An event that gets fired when an exception gets raised while handling a modal interaction.
  • Constructor Details

    • ModalExceptionEvent

      public ModalExceptionEvent(@Nonnull DIH4JDA dih4jda, @Nonnull net.dv8tion.jda.api.interactions.modals.ModalInteraction interaction, @Nonnull Throwable throwable)
      Creates a new ModalExceptionEvent.
      Parameters:
      dih4jda - the DIH4JDA instance that fired this event.
      interaction - the ModalInteraction.
      throwable - the Throwable that caused this event.