I have a link in a message like this:
To do what you want you need to click this link.
I want to recover the anchor of the link, in this case, http://google.com, when the user clicks it.
I actually solved the problem using my webserver but it opens the browser for few seconds and I don't like it very much.
I tried to find something in the events like client.on("link-tapped") but I hadn't very much luck.
The purpose is to be able to insert a bot command in a text, make it look like a link, and let the user click it to execute the command (like telegram does).
Any help will be appreciated.
https://stackoverflow.com/questions/65955261/discord-js-read-a-link-just-clicked January 29, 2021 at 09:19PM
没有评论:
发表评论