This commit is contained in:
Dragon Fire
2024-03-31 12:26:40 -04:00
parent e68149d120
commit 41121ce57f
+1 -1
View File
@@ -61,7 +61,7 @@ module.exports = class TwentyQuestionsCommand extends Command {
const answers = question.answers.map(answer => answer.text);
const rowCount = Math.ceil(answers.length / 5);
const rows = [];
for (let i = 0; i <= rowCount; i++) rows.push(new MessageActionRow());
for (let i = 0; i < rowCount; i++) rows.push(new MessageActionRow());
let rowi = 0;
for (let i = 0; i < answers.length; i++) {
const answer = answers[i];