Fix various code around Message.interaction(_metadata)

This commit is contained in:
Soheab authored and GitHub committed 2024-05-06 18:17:37 -04:00
1 parent 0c353548e2
commit 2248fc1946
2 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -667,8 +667,8 @@ class ViewStore:
msg = interaction.message
if msg is not None:
message_id = msg.id
if msg.interaction:
interaction_id = msg.interaction.id
if msg.interaction_metadata:
interaction_id = msg.interaction_metadata.id
key = (component_type, custom_id)