mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 10:02:05 +02:00
Fix
This commit is contained in:
@@ -61,7 +61,7 @@ module.exports = class TwentyQuestionsCommand extends Command {
|
|||||||
const answers = question.answers.map(answer => answer.text);
|
const answers = question.answers.map(answer => answer.text);
|
||||||
const rowCount = Math.ceil(answers.length / 5);
|
const rowCount = Math.ceil(answers.length / 5);
|
||||||
const rows = [];
|
const rows = [];
|
||||||
for (let i = 0; i < rowCount; i++) rows.push(new MessageActionRow());
|
for (let i = 0; i <= rowCount; i++) rows.push(new MessageActionRow());
|
||||||
for (let i = 0; i < answers.length; i += 5) {
|
for (let i = 0; i < answers.length; i += 5) {
|
||||||
const row = rows[i];
|
const row = rows[i];
|
||||||
const components = answers.slice(i, i + 5);
|
const components = answers.slice(i, i + 5);
|
||||||
|
|||||||
Reference in New Issue
Block a user