Class DIH4JDAEvent<I extends net.dv8tion.jda.api.interactions.Interaction>

java.lang.Object
xyz.dynxsty.dih4jda.events.DIH4JDAEvent<I>
Type Parameters:
I - The follow-up Interaction
Direct Known Subclasses:
CommandCooldownEvent, DIH4JDAThrowableEvent, InsufficientPermissionsEvent, InvalidGuildEvent, InvalidRoleEvent, InvalidUserEvent

public abstract class DIH4JDAEvent<I extends net.dv8tion.jda.api.interactions.Interaction> extends Object
A generic event, which holds the events' name, the DIH4JDA instance and the follow-up interaction.
  • Method Details

    • fire

      public static <I extends net.dv8tion.jda.api.interactions.Interaction> void fire(@Nonnull DIH4JDAEvent<I> event)
      Fires an event from the DIH4JDAEventListener.
      Type Parameters:
      I - The follow-up Interaction
      Parameters:
      event - The DIH4JDAEvent to fire.
      Since:
      v1.5