From 64637978f273c215300aad20e559feff48302e28 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Mon, 7 Jun 2021 20:06:14 -0400 Subject: [PATCH] Fix --- commands/games-sp/akinator.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/commands/games-sp/akinator.js b/commands/games-sp/akinator.js index 94f6d98d..0339e33f 100644 --- a/commands/games-sp/akinator.js +++ b/commands/games-sp/akinator.js @@ -87,10 +87,10 @@ module.exports = class AkinatorCommand extends Command { sRow.addComponents(new MessageButton().setCustomID('back').setStyle('SECONDARY').setLabel('Back')); } sRow.addComponents(new MessageButton().setCustomID('end').setStyle('DANGER').setLabel('End')); - await buttonPress.editReply(stripIndents` - **${aki.currentStep + 1}.** ${aki.question} (${Math.round(Number.parseInt(aki.progress, 10))}%) - ${aki.answers.join(' | ')}${aki.currentStep > 0 ? ` | Back` : ''} | End - `, { components: [row, sRow] }); + await buttonPress.editReply( + `**${aki.currentStep + 1}.** ${aki.question} (${Math.round(Number.parseInt(aki.progress, 10))}%)`, + { components: [row, sRow] } + ); const interactions = await gameMsg.awaitMessageComponentInteractions(res => res.user.id === msg.author.id, { max: 1, time: 30000 @@ -136,7 +136,7 @@ module.exports = class AkinatorCommand extends Command { new MessageButton().setCustomID('true').setLabel('Yes').setStyle('SUCCESS'), new MessageButton().setCustomID('false').setLabel('No').setStyle('DANGER') ); - await buttonPress.update('Is this your character?', { embed, components: [guessRow] }); + await buttonPress.editReply('Is this your character?', { embed, components: [guessRow] }); const verification = await gameMsg.awaitMessageComponentInteractions(res => res.user.id === msg.author.id, { max: 1, time: 30000