Я пытался получить данные с помощью Axios, проблема в том, что я всегда получаю ошибку MessageEmbed field values must be non-empty strings.
Как я могу это исправить? Это то, что я пробовал
const embed = new MessageEmbed()
.setTitle(${res.data.current.condition.text})
.setColor("RANDOM")
.setThumbnail(https:${res.data.current.condition.icon})
.setTimestamp()
.setFooter({text: Last Update: ${res.data.current.last_updated}})
.addFields(
{name: "Location:", value: ${res.data.location.name}, inline: true},
{name: "Region:", value:${res.data.location.region}, inline: true},
{name: "Country:", value: ${res.data.location.country}, inline: true},
{name: "Temperature:", value: ${res.data.current.temp_f}, inline: true},
{name: "Wind:", value: ${res.data.current.wind_mph}`, inline: true} )
message.channel.send({embeds: [embed]})`
🤔 А знаете ли вы, что...
С Node.js можно легко интегрировать с базами данных, такими как MongoDB и MySQL.