Set embed title to a clickable link
20,395
Solution 1
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)")
Solution 2
It's MessageEmbed and this is old now but:
embed.setURL('url here')
Related videos on Youtube
Author by
Christian Barton Randall
Updated on July 05, 2022Comments
-
Christian Barton Randall almost 2 years
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.
-
Federico Grandi over 5 yearsIf that solved your problem, please accept the answer by clicking on the tick on the left: this will mark the question as resolved :)
-
Sander about 4 yearsYou could improve your answer by linking to the relevant updated documentation, since the link in the question is now broken.