Spaces:
Runtime error
Runtime error
Update index.js
Browse files
index.js
CHANGED
|
@@ -521,7 +521,7 @@ client.on('messageCreate', async (message) => {
|
|
| 521 |
|
| 522 |
// Send NEW message with lineup (don't edit the poll message)
|
| 523 |
const view = createLineupView(message.guildId);
|
| 524 |
-
await
|
| 525 |
addToCleanupQueue(message.guildId, message.channelId, msg.id, 'poll');
|
| 526 |
} else {
|
| 527 |
msg.edit({ content: content + `\n\n❌ Canceled: not enough players joined.` });
|
|
@@ -2690,4 +2690,5 @@ async function initialize() {
|
|
| 2690 |
initialize().catch(err => {
|
| 2691 |
console.error(">>> [BOOT] CRITICAL INITIALIZATION ERROR:", err);
|
| 2692 |
process.exit(1);
|
| 2693 |
-
});
|
|
|
|
|
|
| 521 |
|
| 522 |
// Send NEW message with lineup (don't edit the poll message)
|
| 523 |
const view = createLineupView(message.guildId);
|
| 524 |
+
await msg.edit(view);
|
| 525 |
addToCleanupQueue(message.guildId, message.channelId, msg.id, 'poll');
|
| 526 |
} else {
|
| 527 |
msg.edit({ content: content + `\n\n❌ Canceled: not enough players joined.` });
|
|
|
|
| 2690 |
initialize().catch(err => {
|
| 2691 |
console.error(">>> [BOOT] CRITICAL INITIALIZATION ERROR:", err);
|
| 2692 |
process.exit(1);
|
| 2693 |
+
});
|
| 2694 |
+
|