From fb2917d61f58f51e7696d593303229fd9ebfe8b2 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 31 Mar 2024 12:27:34 -0400 Subject: [PATCH] Fix --- commands/games-sp/20-questions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/games-sp/20-questions.js b/commands/games-sp/20-questions.js index 0de113e6..d6d130da 100644 --- a/commands/games-sp/20-questions.js +++ b/commands/games-sp/20-questions.js @@ -65,7 +65,7 @@ module.exports = class TwentyQuestionsCommand extends Command { let rowi = 0; for (let i = 0; i < answers.length; i++) { const answer = answers[i]; - if (rows[rowi].components.length > 5) rowi++; + if (rows[rowi].components.length > 5) ++rowi; const row = rows[rowi]; row.addComponents(new MessageButton().setCustomId(answer).setStyle('PRIMARY').setLabel(answer)); }