Set embed title to a clickable link

Viewed 21050

I have a RichEmbed and I want to make it so I can have a field title that when I click on it, it will lead me to a link.

2 Answers

If you want the title of the embed to be a link, you can add a .url property to it, either by using RichEmbed.setURL(), manually setting it or adding it to the object you pass in the constructor.

If you want the title of a field to be a link that can't be done since that, unfortunately, doesn't support markdown :\
If you want you can add the link in the value text of the field, using markdown:

embed.addField("Field title", "Your text here: [link](http://example.com)")

It's MessageEmbed and this is old now but:

embed.setURL('url here')
Related