Move METAR raw to message body

This commit is contained in:
Skylar Grant 2024-06-22 10:19:29 -04:00
parent 798aaef4ea
commit 806d70b292
1 changed files with 2 additions and 2 deletions

View File

@ -405,7 +405,7 @@ const functions = {
const embed = new Discord.MessageEmbed()
.setAuthor({ name: `${metarData.name} [${metarData.icaoId}] METAR`, iconURL: "https://aviationweather.gov/img/icons/awc-logo-180.png"})
// .setImage("https://media.discordapp.net/stickers/1175134632845516821.webp")
.setDescription(`**Not for real world use!**\n\n${metarData.rawOb}`)
.setDescription(`**Do not use for real world flight planning or navigation.**`)
.setFooter({ text: "METAR by AviationWeather.gov for CumbHub LLC" })
.addFields(
{ name: 'Observation Time', value: `${metarData.reportTime}Z`, inline: true },
@ -415,7 +415,7 @@ const functions = {
{ name: 'Clouds', value: clouds.join('\n'), inline: true },
{ name: 'Altimeter', value: `${altim} inHg`, inline: true }
)
return { embeds: [embed] };
return { body: metarData.rawOb, embeds: [embed] };
},
datis(datisData) {
const messageEmbed = new Discord.MessageEmbed()