File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -421,6 +421,7 @@ def _parse_options(self, params) -> List[Option]:
421
421
422
422
if option .name is None :
423
423
option .name = p_name
424
+ option ._parameter_name = p_name
424
425
425
426
final_options .append (option )
426
427
@@ -479,11 +480,11 @@ async def _invoke(self, ctx: ApplicationContext) -> None:
479
480
elif op .input_type == SlashCommandOptionType .string and op ._converter is not None :
480
481
arg = await op ._converter .convert (ctx , arg )
481
482
482
- kwargs [op .name ] = arg
483
+ kwargs [op ._parameter_name ] = arg
483
484
484
485
for o in self .options :
485
- if o .name not in kwargs :
486
- kwargs [o .name ] = o .default
486
+ if o ._parameter_name not in kwargs :
487
+ kwargs [o ._parameter_name ] = o .default
487
488
488
489
if self .cog is not None :
489
490
await self .callback (self .cog , ctx , ** kwargs )
You can’t perform that action at this time.
0 commit comments