Interface IDeferrableCallback
- All Superinterfaces:
Interaction
,ISnowflake
- All Known Subinterfaces:
ButtonInteraction
,CommandInteraction
,ComponentInteraction
,ContextInteraction<T>
,EntitySelectInteraction
,IMessageEditCallback
,IPremiumRequiredReplyCallback
,IReplyCallback
,MessageContextInteraction
,ModalInteraction
,SelectMenuInteraction<T,
,S> SlashCommandInteraction
,StringSelectInteraction
,UserContextInteraction
- All Known Implementing Classes:
ButtonInteractionEvent
,EntitySelectInteractionEvent
,GenericCommandInteractionEvent
,GenericComponentInteractionCreateEvent
,GenericContextInteractionEvent
,GenericSelectMenuInteractionEvent
,MessageContextInteractionEvent
,ModalInteractionEvent
,SlashCommandInteractionEvent
,StringSelectInteractionEvent
,UserContextInteractionEvent
Interactions which can be deferred.
This is implemented by IReplyCallback
and IMessageEditCallback
.
-
Method Summary
Modifier and TypeMethodDescriptiongetHook()
TheInteractionHook
which can be used to send deferred replies or followup messages.Methods inherited from interface net.dv8tion.jda.api.interactions.Interaction
getChannel, getChannelId, getChannelIdLong, getChannelType, getEntitlements, getGuild, getGuildChannel, getGuildLocale, getJDA, getMember, getMessageChannel, getToken, getType, getTypeRaw, getUser, getUserLocale, isAcknowledged, isFromGuild
Methods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getIdLong, getTimeCreated
-
Method Details
-
getHook
TheInteractionHook
which can be used to send deferred replies or followup messages.- Returns:
- The interaction hook
- Throws:
UnsupportedOperationException
- If this interaction does not support deferred replies and followup messages
-