@@ -1381,10 +1381,12 @@ async def on_socket_response(self, msg):
13811381
13821382 to_use = msg ["d" ]
13831383 interaction_type = to_use ["type" ]
1384- if interaction_type in ( 1 , 2 ) :
1384+ if interaction_type == 1 :
13851385 return await self ._on_slash (to_use )
1386- if interaction_type == 3 :
1387- return await self ._on_component (to_use )
1386+ if interaction_type in (2 , 3 ):
1387+ return await self ._on_context_menu (to_use )
1388+ # if interaction_type == 3:
1389+ # return await self._on_component(to_use)
13881390
13891391 raise NotImplementedError
13901392
@@ -1469,26 +1471,9 @@ async def _on_context_menu(self, to_use):
14691471 if "value" not in x :
14701472 return await self .handle_subcommand (ctx , to_use )
14711473
1472- # This is to temporarily fix Issue #97, that on Android device
1473- # does not give option type from API.
1474- temporary_auto_convert = {}
1475- for x in selected_cmd .options :
1476- temporary_auto_convert [x ["name" ].lower ()] = x ["type" ]
1477-
1478- args = (
1479- await self .process_options (
1480- ctx .guild ,
1481- to_use ["data" ]["options" ],
1482- selected_cmd .connector ,
1483- temporary_auto_convert ,
1484- )
1485- if "options" in to_use ["data" ]
1486- else {}
1487- )
1488-
14891474 self ._discord .dispatch ("context_menu" , ctx )
14901475
1491- await self .invoke_command (selected_cmd , ctx , args )
1476+ await self .invoke_command (selected_cmd , ctx , args = [] )
14921477
14931478 async def handle_subcommand (self , ctx : context .SlashContext , data : dict ):
14941479 """
0 commit comments