This commit is contained in:
Dragon Fire
2024-03-31 12:36:40 -04:00
parent 6deab1ec12
commit 02780d180b
+10 -2
View File
@@ -98,8 +98,16 @@ module.exports = class TwentyQuestionsCommand extends Command {
break; break;
} }
} }
if (win === 'time') return buttonPress.editReply({ content: 'Game ended due to forfeit.' }); if (win === 'time') {
return buttonPress.editReply({ content: `**${question.winText}**\n${question.result}` }); return buttonPress.editReply({
content: 'Game ended due to forfeit.',
components: []
});
}
return buttonPress.editReply({
content: `**${question.winText}**\n${question.result}`,
components: []
});
} }
makeBaseURI(game) { makeBaseURI(game) {