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
IReplyCallbackandIMessageEditCallback.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InteractionHookgetHook()TheInteractionHookwhich 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()
TheInteractionHookwhich 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
-
-