How do I implement hyperlink functionality in Discord bot messages beyond embed titles?

How can my Discord bot include clickable links beyond just the title? For example:

let newEmbed = new CustomEmbed();
newEmbed.addLink('Overview', 'https://example.org');

Can regular users also employ hyperlinks?

Implementing clickable links in message bodies in Discord is more challenging because Discord limits hyperlinks to certain components like embed titles and descriptions. In my projects, I found that the most effective workaround is to utilize components, for example, interactive buttons that direct users to the desired URL. This approach requires using the updated Discord API libraries. It is not as straightforward as simple markdown links but it provides similar functionality. This method may require extra configuration but has worked reliably in various custom bot deployments.

In my experience, creating clickable links outside of an embed title or description is not straightforward due to Discord’s limitations. I had a similar issue when working on a custom bot where I needed to offer interactive content without using a button. I ended up using a workaround by embedding the URL within the message content itself using the markdown format, although it does not offer the same level of interactivity. In newer versions of our library, however, I have seen that updating to the latest Discord API allows for more creative solutions using ephemeral components.

hey, i tested using discord’s new interactive components. while its not a classic hyperlink, adding a clickable button worked pretty well for extra links. kinda messy but it did the job in my bot!