Skip to content

Commit 9b52fdb

Browse files
committed
fix: component commands use custom id for _command_name
1 parent acbe04f commit 9b52fdb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

interactions/models/internal/context.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,7 @@ def from_dict(cls, client: "interactions.Client", payload: dict) -> Self:
634634
instance = super().from_dict(client, payload)
635635
instance.values = payload["data"].get("values", [])
636636
instance.custom_id = payload["data"]["custom_id"]
637+
instance._command_id = instance.custom_id
637638
instance.component_type = payload["data"]["component_type"]
638639

639640
searches = {

0 commit comments

Comments
 (0)