Hey @crystal tusk! I just created a branch with a way for you to fix your problem. If you have any suggestions or find anything wrong let me know. At this time I cant really predict when this will make it into the main library. I forgot to mention earlier that you could also immediately solve your problem by setting auto_sync=False in your bot constructor. This would mean that you need to either sync your command manually or individually within py-cord if you make changes to their definitions.
pip install git+https://github.com/Pycord-Development/pycord.git@feat/activity-interactions
https://github.com/Pycord-Development/pycord/tree/feat/activity-interactions
You can create an entry point command in the same way that you would create other types of commands.
@bot.entry_point_command(normal_app_command_kwargs, handler=discord.EntryPointHandler.app_handler)
async def launch(ctx: ApplicationContext):
...
Some things to note, if you already have a custom entry point command registered you will have to match its structure here. This includes the one that discord makes by default. You will lose all of the name/description localizations if you dont specify them manually. Also there is a entry point command specific attribute called handler as shown above. There are 2 values that you can read about here if needed. It should be noted that DISCORD_LAUNCH_ACTIVITY handlers does not make an interaction, so despite having a callback function it will not be called. I also added ctx.response.launch_activity() is that is useful you.
CC @low brook if you have any feedback on my design