This commit is contained in:
Dragon Fire
2021-08-02 20:29:56 -04:00
parent c59c77fbf5
commit 892fc315d4
3 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -48,7 +48,7 @@ module.exports = class AkinatorCommand extends Command {
const gameMsg = await msg.reply('Welcome to Akinator! Think of a character, and I will try to guess it.', {
components: [initialRow]
});
const initialVerify = await gameMsg.awaitMessageComponentInteractions(res => res.user.id === msg.author.id, {
const initialVerify = await gameMsg.awaitMessageComponent(res => res.user.id === msg.author.id, {
max: 1,
time: 30000
});
@@ -86,7 +86,7 @@ module.exports = class AkinatorCommand extends Command {
`**${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, {
const interactions = await gameMsg.awaitMessageComponent(res => res.user.id === msg.author.id, {
max: 1,
time: 30000
});
@@ -128,7 +128,7 @@ module.exports = class AkinatorCommand extends Command {
new MessageButton().setCustomId('false').setLabel('No').setStyle('DANGER')
);
await buttonPress.editReply('Is this your character?', { embeds: [embed], components: [guessRow] });
const verification = await gameMsg.awaitMessageComponentInteractions(res => res.user.id === msg.author.id, {
const verification = await gameMsg.awaitMessageComponent(res => res.user.id === msg.author.id, {
max: 1,
time: 30000
});