Ask coding questions

← Back to all posts
How do I create a hyperlink in a message?
Stanhil (0)

I'm trying to hyperlink an embed message in discord js, but I can't.

Comments
hotnewtop
Coder100 (18872)

There are two cases

With no embed

Without an embed, you must send the link in full just like you would in discord.

msg.channel.send("https://replit.com");

With embed

With an embed, you can use the markdown syntax like this.

msg.channel.send({
  embed: {
    description: "[click me](https://replit.com)"
  }
});
SYGT3M (0)

If you're asking about adding an hyperlink to an embed , you have to do:
[Text](Link)
For example: [Repl.it](https://repl.it)