Fix for awaitMessages, Util

This commit is contained in:
Dragon Fire
2024-03-19 23:50:10 -04:00
parent cec26b124e
commit e93556e87b
6 changed files with 15 additions and 10 deletions
+2 -1
View File
@@ -71,7 +71,8 @@ module.exports = class Game {
reactIfAble(res, res.author, SUCCESS_EMOJI_ID, '✅');
return true;
};
const votes = await this.channel.awaitMessages(filter, {
const votes = await this.channel.awaitMessages({
filter,
max: this.players.size,
time: 90000
});
+2 -1
View File
@@ -23,7 +23,8 @@ module.exports = class Player {
${valid.map((p, i) => `**${i + 1}.** ${p.user.tag}`).join('\n')}
`);
const filter = res => valid[Number.parseInt(res.content, 10) - 1];
const decision = await this.user.dmChannel.awaitMessages(filter, {
const decision = await this.user.dmChannel.awaitMessages({
filter,
max: 1,
time: 120000
});