Skip to content

Commit 3f316c4

Browse files
committed
Add ctx.name to MenuContext
1 parent 01d300e commit 3f316c4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

discord_slash/context.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,7 @@ def __init__(
653653
logger,
654654
):
655655
super().__init__(_http=_http, _json=_json, _discord=_discord, logger=logger)
656+
self.name = self.command = self.invoked_with = _json["data"]["name"] # This exists.
656657
self.context_type = _json["type"]
657658
self._resolved = self.data["resolved"] if "resolved" in self.data.keys() else None
658659
self.target_message = None

0 commit comments

Comments
 (0)