File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -174,22 +174,20 @@ def response(self) -> InteractionResponse:
174
174
175
175
@property
176
176
def selected_options (self ) -> Optional [List [Dict ]]:
177
- """Returns a dictionary containing the options and values that were selected by the user, if applicable."""
177
+ """Returns a dictionary containing the options and values that were selected by the user when the command was processed , if applicable."""
178
178
if "options" in self .interaction .data :
179
179
return self .interaction .data ["options" ]
180
180
return None
181
181
182
182
@property
183
- def unselected_options (self ) -> Optional [List [Dict ]]:
184
- """Returns a dictionary containing the options that were not selected by the user, if applicable ."""
183
+ def unselected_options (self ) -> Optional [List [Option ]]:
184
+ """Returns a list of Option objects (if any) that were not selected by the user when the command was processed ."""
185
185
if self .command .options is not None : # type: ignore
186
- selected = [opt ["name" ] for opt in self .selected_options ]
187
186
return [
188
187
option
189
188
for option in self .command .options # type: ignore
190
- if option .to_dict ()["name" ] not in selected
189
+ if option .to_dict ()["name" ] not in [ opt [ "name" ] for opt in self . selected_options ]
191
190
]
192
-
193
191
return None
194
192
195
193
@property
You can’t perform that action at this time.
0 commit comments