Package xyz.dynxsty.dih4jda.events
Class DIH4JDAEvent<I extends net.dv8tion.jda.api.interactions.Interaction>
java.lang.Object
xyz.dynxsty.dih4jda.events.DIH4JDAEvent<I>
- Type Parameters:
I
- The follow-upInteraction
- 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 Summary
Modifier and TypeMethodDescriptionstatic <I extends net.dv8tion.jda.api.interactions.Interaction>
voidfire
(DIH4JDAEvent<I> event) Fires an event from theDIH4JDAEventListener
.
-
Method Details
-
fire
public static <I extends net.dv8tion.jda.api.interactions.Interaction> void fire(@Nonnull DIH4JDAEvent<I> event) Fires an event from theDIH4JDAEventListener
.- Type Parameters:
I
- The follow-upInteraction
- Parameters:
event
- TheDIH4JDAEvent
to fire.- Since:
- v1.5
-