forked from ChrisChrome/weather-bot
Update funcs.js
This commit is contained in:
parent
6bdc4240be
commit
fbcc902bba
4
funcs.js
4
funcs.js
|
@ -108,12 +108,12 @@ const generateDiscordEmbeds = (forecastData, numOfDays) => {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Precipitation',
|
name: 'Precipitation',
|
||||||
value: period.probabilityOfPrecipitation.value ? period.probabilityOfPrecipitation.value + '%' : '0%',
|
value: period.probabilityOfPrecipitation?.value ? period.probabilityOfPrecipitation?.value + '%' : '0%',
|
||||||
inline: true
|
inline: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Humidity',
|
name: 'Humidity',
|
||||||
value: period.relativeHumidity.value + '%',
|
value: period.relativeHumidity?.value ? period.relativeHumidity.value + '%' : "0%",
|
||||||
}
|
}
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue