defer_interaction
Coroutinemust be awaited
Acknowledges now to answer later (15 minutes). On a component, update=True shows nothing.
from discord_interactions import defer_interactionSignature
async def defer_interaction( interaction: discord.Interaction, update: bool = False, ephemeral: bool = False, thinking: bool = True,) -> NoneParameters
| Name | Type | Default | Description |
|---|---|---|---|
interaction | discord.Interaction | required | |
update | bool | False | Silent acknowledgement for a component; the message is edited afterwards. |
ephemeral | bool | False | The thinking state and the answer are ephemeral. |
thinking | bool | True |
Returns
None
Example
from discord_interactions import defer_interaction, send_followup await defer_interaction(interaction, ephemeral=True)resultat = await calcul_long()await send_followup(interaction, f"Résultat : {resultat}", ephemeral=True)