Update index.js

This commit is contained in:
Milo Gourvest
2025-04-18 09:32:19 +02:00
committed by GitHub
parent 87a52cdae3
commit ee1f30f55c

View File

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