Browse Source

Use InteractionMetadata for InteractionResponse.edit_message

pull/9821/head
Rapptz 11 months ago
parent
commit
64e743af50
  1. 2
      discord/interactions.py

2
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

Loading…
Cancel
Save