Use InteractionMetadata for InteractionResponse.edit_message

This commit is contained in:
Rapptz 2024-05-06 23:03:24 -04:00
parent 2248fc1946
commit 64e743af50

View File

@ -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