From 64e743af5031db6860f99357212afd77a5b029d9 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Mon, 6 May 2024 23:03:24 -0400 Subject: [PATCH] Use InteractionMetadata for InteractionResponse.edit_message --- discord/interactions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/interactions.py b/discord/interactions.py index 5638886b3..f471e2040 100644 --- a/discord/interactions.py +++ b/discord/interactions.py @@ -949,7 +949,7 @@ class InteractionResponse(Generic[ClientT]): message_id = msg.id # If this was invoked via an application command then we can use its original interaction ID # Since this is used as a cache key for view updates - original_interaction_id = msg.interaction.id if msg.interaction is not None else None + original_interaction_id = msg.interaction_metadata.id if msg.interaction_metadata is not None else None else: message_id = None original_interaction_id = None