From 8777f9b6ae714097b164fa2b4e165c29a076f602 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 14 Mar 2021 15:07:35 -0400 Subject: [PATCH] Fix --- commands/games-mp/mafia.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/commands/games-mp/mafia.js b/commands/games-mp/mafia.js index 968fb936..01f4fec8 100644 --- a/commands/games-mp/mafia.js +++ b/commands/games-mp/mafia.js @@ -23,8 +23,12 @@ module.exports = class MafiaCommand extends Command { return msg.reply(`I am not in a voice channel. Use ${usage} to fix that!`); } for (const member of connection.channel.members.values()) await msg.guild.members.fetch(member.id); - if (connection.channel.members.size > 16) return msg.reply('Please do not have more than 15 players.'); - if (connection.channel.members.size < 7) return msg.reply('Please have at least 5 players before starting.'); + if (connection.channel.members.size > 16) { + return msg.reply('Please do not have more than 15 users in this voice channel.'); + } + if (connection.channel.members.size < 7) { + return msg.reply('Please have at least 5 users in this voice channel before starting.'); + } const game = new Game(this.client, msg.channel, connection); this.client.games.set(msg.channel.id, game); try {