Skip to content

Commit f8aa1d0

Browse files
committed
Smooth brained.
1 parent fcaaea5 commit f8aa1d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

discord_slash/context.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ def __init__(
5050
self._type = _json["type"] # Factor to check if its a slash command vs menus
5151
self.message = None
5252
self.data = _json["data"]
53-
self._message_menu_id = self.data["resolved"]["messages"] or None # Should be set later.
54-
self._author_menus_id = self.data["resolved"]["members"] or None
53+
self._message_menu_id = self.data["resolved"]["messages"] if "resolved" in self.data.keys() else None # Should be set later.
54+
self._author_menus_id = self.data["resolved"]["members"] if "resolved" in self.data.keys() else None
5555
self.interaction_id = _json["id"]
5656
self._http = _http
5757
self.bot = _discord

0 commit comments

Comments
 (0)