Class ComponentEvent
java.lang.Object
com.github.kaktushose.jda.commands.dispatching.events.Event<GenericComponentInteractionCreateEvent>
com.github.kaktushose.jda.commands.dispatching.events.ReplyableEvent<GenericComponentInteractionCreateEvent>
com.github.kaktushose.jda.commands.dispatching.events.ModalReplyableEvent<GenericComponentInteractionCreateEvent>
com.github.kaktushose.jda.commands.dispatching.events.interactions.ComponentEvent
- All Implemented Interfaces:
Reply
,ISnowflake
,Interaction
public final class ComponentEvent
extends ModalReplyableEvent<GenericComponentInteractionCreateEvent>
This class is a subclass of
Event
. It provides additional features for replying to a GenericComponentInteractionCreateEvent
.- See Also:
-
Field Summary
Fields inherited from class com.github.kaktushose.jda.commands.dispatching.events.ReplyableEvent
definition
-
Constructor Summary
ConstructorDescriptionComponentEvent
(@NotNull GenericComponentInteractionCreateEvent event, @NotNull InteractionRegistry registry, @NotNull com.github.kaktushose.jda.commands.dispatching.Runtime runtime, @NotNull InteractionDefinition definition, InteractionDefinition.ReplyConfig global) Constructs a new CommandEvent. -
Method Summary
Modifier and TypeMethodDescription<T extends GenericComponentInteractionCreateEvent>
TReturns the underlyingGenericComponentInteractionCreateEvent
and casts it to the given type.Methods inherited from class com.github.kaktushose.jda.commands.dispatching.events.ModalReplyableEvent
replyModal
Methods inherited from class com.github.kaktushose.jda.commands.dispatching.events.ReplyableEvent
getButton, getSelectMenu, removeComponents, reply, reply, reply, with
Methods inherited from class com.github.kaktushose.jda.commands.dispatching.events.Event
closeRuntime, getChannel, getChannelIdLong, getEntitlements, getGuild, getIdLong, getJDA, getMember, getToken, getTypeRaw, getUser, getUserLocale, isAcknowledged, jdaEvent, kv, runtimeId
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.dv8tion.jda.api.interactions.Interaction
getChannelId, getChannelType, getGuildChannel, getGuildLocale, getMessageChannel, getType, isFromGuild
Methods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getTimeCreated
-
Constructor Details
-
ComponentEvent
public ComponentEvent(@NotNull @NotNull GenericComponentInteractionCreateEvent event, @NotNull @NotNull InteractionRegistry registry, @NotNull @NotNull com.github.kaktushose.jda.commands.dispatching.Runtime runtime, @NotNull @NotNull InteractionDefinition definition, @NotNull InteractionDefinition.ReplyConfig global) Constructs a new CommandEvent.- Parameters:
event
- theGenericComponentInteractionCreateEvent
this event holdsregistry
- the correspondingInteractionRegistry
runtime
- the correspondingRuntime
definition
- the correspondingInteractionDefinition
-
-
Method Details
-
jdaEvent
Returns the underlyingGenericComponentInteractionCreateEvent
and casts it to the given type.- Type Parameters:
T
- a subtype ofGenericComponentInteractionCreateEvent
- Parameters:
type
- a subtype ofGenericComponentInteractionCreateEvent
, namelyButtonInteractionEvent
,EntitySelectInteractionEvent
orStringSelectInteractionEvent
- Returns:
ComponentEvent
-