Deferring Interactions
If your component is interaction based (i.e. commands
/buttons
/…), you can optionally defer that interaction. Discord requires you to respond to an interaction within 3 seconds, otherwise it marks it as failed. Often it’ll take longer than 3 seconds to respond, so you need to “defer” your reply. You can do this by enabling the defer
option, and replacing any instance of reply
with followUp
. For example:
Ephemeral
If you want deffered replies to be ephemeral
, as in only the person who created the interaction can see it. You have to set it in the defer options. You can’t change whether it’s ephemeral or not part way through an interaction: