Interface IReplyCallback

All Superinterfaces:
IDeferrableCallback, Interaction, ISnowflake
All Known Subinterfaces:
ButtonInteraction, CommandInteraction, ComponentInteraction, ContextInteraction<T>, EntitySelectInteraction, MessageContextInteraction, ModalInteraction, SelectMenuInteraction<T,S>, SlashCommandInteraction, StringSelectInteraction, UserContextInteraction
All Known Implementing Classes:
ButtonInteractionEvent, EntitySelectInteractionEvent, GenericCommandInteractionEvent, GenericComponentInteractionCreateEvent, GenericContextInteractionEvent, GenericSelectMenuInteractionEvent, MessageContextInteractionEvent, ModalInteractionEvent, SlashCommandInteractionEvent, StringSelectInteractionEvent, UserContextInteractionEvent

public interface IReplyCallback extends IDeferrableCallback
Interactions which allow message replies in the channel they were used in.

These replies automatically acknowledge the interaction and support deferring.

Deferred Replies
If an interaction reply is deferred using deferReply() or deferReply(boolean), the interaction hook can be used to send a delayed/deferred reply with WebhookClient.sendMessage(String). When using deferReply() the first message sent to the InteractionHook will be identical to using InteractionHook.editOriginal(String). You must decide whether your reply will be ephemeral or not before calling deferReply(). So design your code flow with that in mind!

If a reply is deferred, it becomes the original message of the interaction hook. This means all the methods with original in the name, such as InteractionHook.editOriginal(String), will affect that original reply.