From ee1f30f55c5c5c71960dbb501a62eb24f378f801 Mon Sep 17 00:00:00 2001 From: Milo Gourvest <128139414+cassoule@users.noreply.github.com> Date: Fri, 18 Apr 2025 09:32:19 +0200 Subject: [PATCH] Update index.js --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index cf04b95..599bbf4 100644 --- a/index.js +++ b/index.js @@ -795,11 +795,11 @@ app.post('/interactions', verifyKeyMiddleware(process.env.PUBLIC_KEY), async fun embeds: [ { title: `Timeout`, - description: `Proposition de timeout **${activePolls[id].toUsername}** pendant ${activePolls[id].time_display}`, + description: `Proposition de timeout **${poll.toUsername}** pendant ${poll.time_display}`, fields: [ { name: 'Votes totaux', - value: '✅ ' + activePolls[id].for, + value: '✅ ' + poll.for, inline: true, }, ], @@ -903,4 +903,4 @@ app.post('/interactions', verifyKeyMiddleware(process.env.PUBLIC_KEY), async fun app.listen(PORT, () => { console.log('Listening on port', PORT); -}); \ No newline at end of file +});