From 806d70b2928e9443ab2bf8445c3de57b961b52f9 Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Sat, 22 Jun 2024 10:19:29 -0400 Subject: [PATCH] Move METAR raw to message body --- functions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions.js b/functions.js index 1439d78..addd6fa 100644 --- a/functions.js +++ b/functions.js @@ -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()