@@ -376,7 +376,7 @@ async def on_socket_response(self, msg):
376
376
return await self .handle_subcommand (ctx , to_use )
377
377
args = await self .process_options (ctx .guild , to_use ["data" ]["options" ], selected_cmd ["auto_convert" ]) \
378
378
if "options" in to_use ["data" ] else []
379
- self ._discord .dispatch ("slash_command" , to_use [ "data" ][ "name" ], selected_cmd , ctx )
379
+ self ._discord .dispatch ("slash_command" , ctx )
380
380
try :
381
381
await selected_cmd ["func" ](ctx , * args )
382
382
except Exception as ex :
@@ -408,7 +408,7 @@ async def handle_subcommand(self, ctx: model.SlashContext, data: dict):
408
408
selected = base [sub_name ][sub_group ]
409
409
args = await self .process_options (ctx .guild , x ["options" ], selected ["auto_convert" ]) \
410
410
if "options" in x .keys () else []
411
- self ._discord .dispatch ("slash_command" , f" { data [ 'data' ][ 'name' ] } { sub_name } { sub_group } " , selected , ctx )
411
+ self ._discord .dispatch ("slash_command" , ctx )
412
412
try :
413
413
await selected ["func" ](ctx , * args )
414
414
except Exception as ex :
@@ -417,7 +417,7 @@ async def handle_subcommand(self, ctx: model.SlashContext, data: dict):
417
417
selected = base [sub_name ]
418
418
args = await self .process_options (ctx .guild , sub_opts , selected ["auto_convert" ]) \
419
419
if "options" in sub .keys () else []
420
- self ._discord .dispatch ("slash_command" , f" { data [ 'data' ][ 'name' ] } { sub_name } " , selected , ctx )
420
+ self ._discord .dispatch ("slash_command" , ctx )
421
421
try :
422
422
await selected ["func" ](ctx , * args )
423
423
except Exception as ex :
0 commit comments