Interface InteractionHook

All Superinterfaces:
WebhookClient<Message>

public interface InteractionHook extends WebhookClient<Message>
Webhook API for an interaction. Valid for up to 15 minutes after the interaction.
This can be used to send followup messages or edit the original message of an interaction.

The interaction has to be acknowledged before any of these actions can be performed. First, you need to call one of:

When IReplyCallback.deferReply() is used, the first message will act identically to editOriginal(...). This means that you cannot make your deferred reply ephemeral through this interaction hook. You need to specify whether your reply is ephemeral or not directly in deferReply(boolean).

See Also: