Adjust embed appearance
This commit is contained in:
parent
4c20d08471
commit
798aaef4ea
12
functions.js
12
functions.js
@ -408,12 +408,12 @@ const functions = {
|
||||
.setDescription(`**Not for real world use!**\n\n${metarData.rawOb}`)
|
||||
.setFooter({ text: "METAR by AviationWeather.gov for CumbHub LLC" })
|
||||
.addFields(
|
||||
{ name: 'Observation Time', value: `${metarData.reportTime}Z` },
|
||||
{ name: 'Temperature', value: `${metarData.temp}ºC/${metarData.dewp}ºC`},
|
||||
{ name: 'Winds', value: `${metarData.wdir.toString().padStart(3, '0')}º@${metarData.wspd}${wgst} kts`},
|
||||
{ name: 'Visibility', value: `${metarData.visib} SM` },
|
||||
{ name: 'Clouds', value: clouds.join('\n') },
|
||||
{ name: 'Altimeter', value: `${altim} inHg` }
|
||||
{ name: 'Observation Time', value: `${metarData.reportTime}Z`, inline: true },
|
||||
{ name: 'Temperature', value: `${metarData.temp}ºC/${metarData.dewp}ºC`, inline: true },
|
||||
{ name: 'Winds', value: `${metarData.wdir.toString().padStart(3, '0')}º@${metarData.wspd}${wgst} kts`, inline: true },
|
||||
{ name: 'Visibility', value: `${metarData.visib} SM`, inline: true },
|
||||
{ name: 'Clouds', value: clouds.join('\n'), inline: true },
|
||||
{ name: 'Altimeter', value: `${altim} inHg`, inline: true }
|
||||
)
|
||||
return { embeds: [embed] };
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user