File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -261,7 +261,7 @@ def check_sub_command(option: dict) -> dict:
261261 for sub_option in option ["options" ]:
262262 kwargs [sub_option ["name" ]] = sub_option ["value" ]
263263 else :
264- kwargs [option [' name' ]] = option [' value' ]
264+ kwargs [option [" name" ]] = option [" value" ]
265265
266266 return kwargs
267267
@@ -314,15 +314,21 @@ def check_sub_auto(option: dict) -> tuple:
314314 if context .data ._json .get ("options" ):
315315 if context .data .options :
316316 for option in context .data .options :
317- _kwargs .update (check_sub_command (option if isinstance (option , dict ) else option ._json ))
317+ _kwargs .update (
318+ check_sub_command (
319+ option if isinstance (option , dict ) else option ._json
320+ )
321+ )
318322 elif data ["type" ] == InteractionType .MESSAGE_COMPONENT :
319323 _name = context .data .custom_id
320324 elif data ["type" ] == InteractionType .APPLICATION_COMMAND_AUTOCOMPLETE :
321325 _name = "autocomplete_"
322326 if context .data ._json .get ("options" ):
323327 if context .data .options :
324328 for option in context .data .options :
325- add_name , add_args = check_sub_auto (option if isinstance (option , dict ) else option ._json )
329+ add_name , add_args = check_sub_auto (
330+ option if isinstance (option , dict ) else option ._json
331+ )
326332 if add_name :
327333 _name += add_name
328334 if add_args :
You can’t perform that action at this time.
0 commit comments