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}`)
|
.setDescription(`**Not for real world use!**\n\n${metarData.rawOb}`)
|
||||||
.setFooter({ text: "METAR by AviationWeather.gov for CumbHub LLC" })
|
.setFooter({ text: "METAR by AviationWeather.gov for CumbHub LLC" })
|
||||||
.addFields(
|
.addFields(
|
||||||
{ name: 'Observation Time', value: `${metarData.reportTime}Z` },
|
{ name: 'Observation Time', value: `${metarData.reportTime}Z`, inline: true },
|
||||||
{ name: 'Temperature', value: `${metarData.temp}ºC/${metarData.dewp}ºC`},
|
{ name: 'Temperature', value: `${metarData.temp}ºC/${metarData.dewp}ºC`, inline: true },
|
||||||
{ name: 'Winds', value: `${metarData.wdir.toString().padStart(3, '0')}º@${metarData.wspd}${wgst} kts`},
|
{ name: 'Winds', value: `${metarData.wdir.toString().padStart(3, '0')}º@${metarData.wspd}${wgst} kts`, inline: true },
|
||||||
{ name: 'Visibility', value: `${metarData.visib} SM` },
|
{ name: 'Visibility', value: `${metarData.visib} SM`, inline: true },
|
||||||
{ name: 'Clouds', value: clouds.join('\n') },
|
{ name: 'Clouds', value: clouds.join('\n'), inline: true },
|
||||||
{ name: 'Altimeter', value: `${altim} inHg` }
|
{ name: 'Altimeter', value: `${altim} inHg`, inline: true }
|
||||||
)
|
)
|
||||||
return { embeds: [embed] };
|
return { embeds: [embed] };
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user