Detecting Application Commands Intended for Other Bots!
I'm currently working on a Discord.js bot where I need to detect when users trigger application commands intended for other bots. I want to be able to track when a user sends a command like "/play" meant for a music bot, and then capture the interaction where the music bot responds.
Example: a user types "/play", thinking it will trigger the music bot, but my bot intercepts it and logs that it was intended for the music bot. Then, when the music bot responds to the user's command, my bot should detect this interaction and log that the music bot replied, possibly with additional details such as an embed containing a link.
My question is: Is it possible to achieve this functionality with Discord.js, and if so, how can I implement it effectively?
What I've tried:
Example: a user types "/play", thinking it will trigger the music bot, but my bot intercepts it and logs that it was intended for the music bot. Then, when the music bot responds to the user's command, my bot should detect this interaction and log that the music bot replied, possibly with additional details such as an embed containing a link.
My question is: Is it possible to achieve this functionality with Discord.js, and if so, how can I implement it effectively?
What I've tried: