We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 923b090 commit 093ec07Copy full SHA for 093ec07
discord_slash/context.py
@@ -321,7 +321,10 @@ def __init__(
321
)
322
self.component = self.origin_message.get_component(self.custom_id)
323
324
- self.selected_options = _json["data"]["values"] if self.component_type == 3 else None
+ self.selected_options = None
325
+
326
+ if self.component_type == 3:
327
+ self.selected_options = _json["data"].get("values", [])
328
329
async def defer(self, hidden: bool = False, edit_origin: bool = False):
330
"""
0 commit comments