discord-interactions.py

get_original_response

Coroutinemust be awaited

Fetches the original response (API dict), for example to get its ID.

from discord_interactions import get_original_response

Signature

async def get_original_response(interaction: discord.Interaction) -> Dict[str, Any]

Parameters

NameTypeDefaultDescription
interactiondiscord.Interactionrequired

Returns

Dict[str, Any]

Type a name: create_button, ModalBuilder, cooldown.