diff --git a/commands/games-sp/akinator.js b/commands/games-sp/akinator.js index b8260772..a6fdc962 100644 --- a/commands/games-sp/akinator.js +++ b/commands/games-sp/akinator.js @@ -48,7 +48,8 @@ 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.awaitMessageComponent(res => res.user.id === msg.author.id, { + const initialVerify = await gameMsg.awaitMessageComponent({ + filter: res => res.user.id === msg.author.id, max: 1, time: 30000 }); @@ -86,7 +87,8 @@ 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.awaitMessageComponent(res => res.user.id === msg.author.id, { + const interactions = await gameMsg.awaitMessageComponent({ + filter: res => res.user.id === msg.author.id, max: 1, time: 30000 }); @@ -128,7 +130,8 @@ 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.awaitMessageComponent(res => res.user.id === msg.author.id, { + const verification = await gameMsg.awaitMessageComponent({ + filter: res => res.user.id === msg.author.id, max: 1, time: 30000 }); diff --git a/commands/games-sp/true-or-false.js b/commands/games-sp/true-or-false.js index 04f38838..67e3cd07 100644 --- a/commands/games-sp/true-or-false.js +++ b/commands/games-sp/true-or-false.js @@ -56,7 +56,8 @@ module.exports = class TrueOrFalseCommand extends Command { ${decodeURIComponent(body.results[0].question)} `, { components: [row] }); const filter = res => res.user.id === msg.author.id; - const interactions = await questionMsg.awaitMessageComponent(filter, { + const interactions = await questionMsg.awaitMessageComponent({ + filter, max: 1, time: 15000 }); diff --git a/commands/other/kino.js b/commands/other/kino.js index 17c7d77c..8ce3d8b3 100644 --- a/commands/other/kino.js +++ b/commands/other/kino.js @@ -72,7 +72,8 @@ module.exports = class KinoCommand extends Command { Press "End" at any time to stop reading. `, { components: [row] }); const filter = res => res.user.id === msg.author.id; - const initialInteractions = await initialMsg.awaitMessageComponent(filter, { + const initialInteractions = await initialMsg.awaitMessageComponent({ + filter, max: 1, time: 15000 }); @@ -95,7 +96,8 @@ module.exports = class KinoCommand extends Command { ${escapeMarkdown(line.trim())} `, { components: [row] }); - const interactions = await initialMsg.awaitMessageComponent(filter, { + const interactions = await initialMsg.awaitMessageComponent({ + filter, max: 1, time: 120000 });