K
K
Kurooooo2020-07-27 17:59:15
Node.js
Kurooooo, 2020-07-27 17:59:15

Working with the DiscordJS library, I need to create hyperlinks, I don’t understand how to do it?

I am writing a discord bot
can someone explain how to make hyperlinks in embed objects

let embed = new Discord.MessageEmbed().setTitle(brandshopp.model)
            .addField('**Тип релиза:**', 'анонс')
            .addField('**Бренд**', brandshopp.name)
            .setThumbnail(brandshopp.photo)
            .addField('**Модель**', brandshopp.model)
            .setURL('https://brandshop.ru/new/')

because .setURL adds a link only to the title, and you can't link to other elements
help!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2020-07-27
@Alexandre888

You can add a link to an embed like this:
[название](ссылка)

V
Vlad Morkovkin, 2021-08-14
@Vlad808

[name](link)
Very simple and compact!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question