forked from ChrisChrome/weather-bot
Fix day being -1
This commit is contained in:
parent
6332006702
commit
99667e4890
2
index.js
2
index.js
|
@ -1236,7 +1236,7 @@ discord.on("interactionCreate", async (interaction) => {
|
||||||
res.buffer().then(async (buffer) => {
|
res.buffer().then(async (buffer) => {
|
||||||
interaction.editReply({
|
interaction.editReply({
|
||||||
embeds: [{
|
embeds: [{
|
||||||
title: `${toTitleCase(type)} Outlook Day ${day}`,
|
title: `${toTitleCase(type)} Outlook Day ${day + 1}`,
|
||||||
image: {
|
image: {
|
||||||
url: `attachment://${type}_${day}.png`
|
url: `attachment://${type}_${day}.png`
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue