Interface IDeferrableCallback
-
- All Superinterfaces:
Interaction
,ISnowflake
- All Known Subinterfaces:
ButtonInteraction
,CommandInteraction
,ComponentInteraction
,ContextInteraction<T>
,IMessageEditCallback
,IReplyCallback
,MessageContextInteraction
,SelectMenuInteraction
,SlashCommandInteraction
,UserContextInteraction
- All Known Implementing Classes:
ButtonInteractionEvent
,GenericCommandInteractionEvent
,GenericComponentInteractionCreateEvent
,GenericContextInteractionEvent
,MessageContextInteractionEvent
,SelectMenuInteractionEvent
,SlashCommandInteractionEvent
,UserContextInteractionEvent
public interface IDeferrableCallback extends Interaction
Interactions which can be deferred.This is implemented by
IReplyCallback
andIMessageEditCallback
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InteractionHook
getHook()
TheInteractionHook
which can be used to send deferred replies or followup messages.-
Methods inherited from interface net.dv8tion.jda.api.interactions.Interaction
getChannel, getChannelType, getGuild, getGuildChannel, getGuildLocale, getJDA, getMember, getMessageChannel, getNewsChannel, getPrivateChannel, getTextChannel, getThreadChannel, getToken, getType, getTypeRaw, getUser, getUserLocale, getVoiceChannel, isAcknowledged, isFromGuild
-
Methods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getIdLong, getTimeCreated
-
-
-
-
Method Detail
-
getHook
@Nonnull InteractionHook 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
-
-