Open sounak9725 opened 4 months ago
Hello @suman9725!
Which version of discord-tictactoe
and discord.js
are you using?
Discord.js : 14.15.3 discord.tictactoe: 4.2.0
Actually its's working but after 2nd move its is not accepting my move, its saying bot is thinking and not taking my move
While running the slash Command it's not working This saying -
Message to Console An [unhandledRejection] has occurred.
TypeError: interaction?.isChatInputCommand is not a function Source: process.on('unhandledRejection') @ 9:46:47 PM GMT+0530•Today at 9:46 PM
This the code I am using inside a command handler: commands/tictactoe.js
const { SlashCommandBuilder, Client, CommandInteractionOptionResolver, Options } = require("discord.js"); const TicTacToe = require("discord-tictactoe"); const game = new TicTacToe({ language: "en", commandOptionName: "user"}); // change here
module.exports = { name: "tictactoe", description: "Play a game of tictactoe", data: new SlashCommandBuilder() .setName("tictactoe") .setDescription("Play a game of TicTacToe!") .addUserOption((option) => option.setName("user").setDescription("Select user to play with!").setRequired(false)), /**
}