@@ -376,7 +376,7 @@ async def on_socket_response(self, msg):
376376 return await self .handle_subcommand (ctx , to_use )
377377 args = await self .process_options (ctx .guild , to_use ["data" ]["options" ], selected_cmd ["auto_convert" ]) \
378378 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 )
380380 try :
381381 await selected_cmd ["func" ](ctx , * args )
382382 except Exception as ex :
@@ -408,7 +408,7 @@ async def handle_subcommand(self, ctx: model.SlashContext, data: dict):
408408 selected = base [sub_name ][sub_group ]
409409 args = await self .process_options (ctx .guild , x ["options" ], selected ["auto_convert" ]) \
410410 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 )
412412 try :
413413 await selected ["func" ](ctx , * args )
414414 except Exception as ex :
@@ -417,7 +417,7 @@ async def handle_subcommand(self, ctx: model.SlashContext, data: dict):
417417 selected = base [sub_name ]
418418 args = await self .process_options (ctx .guild , sub_opts , selected ["auto_convert" ]) \
419419 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 )
421421 try :
422422 await selected ["func" ](ctx , * args )
423423 except Exception as ex :
0 commit comments