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 +});