mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -63,7 +63,7 @@ module.exports = class ConnectFourCommand extends Command {
|
||||
if (choice.toLowerCase() === 'end') return true;
|
||||
const i = Number.parseInt(choice, 10) - 1;
|
||||
if (!board[colLevels[i]]) return false;
|
||||
if (!board[colLevels[i]][i]) return false;
|
||||
if (board[colLevels[i]][i] === undefined) return false;
|
||||
return res.author.id === user.id;
|
||||
};
|
||||
const turn = await msg.channel.awaitMessages(filter, {
|
||||
|
||||
Reference in New Issue
Block a user