#TypeError: Cannot read properties of undefined (reading 'edit') at Wordle.gameOver (D:\Koala Bot

3 messages · Page 1 of 1 (latest)

pine flower
const { Wordle } = require('discord-gamecord');

module.exports = {
    name: 'wordle',
    description: 'Start a Wordle game',
    run: async (client, message, args) => {
        const Game = new Wordle({
            message: message,
            isSlashGame: false,
            embed: {
                title: 'Wordle',
                color: '#575737',
            },
            customWord: null,
            timeoutTime: 60000,
            winMessage: 'You won! The word was **{wort}**.',
            loseMessage: 'You lost! The word was **{wort}**.',
            playerOnlyMessage: 'Only {player} can use these buttons.',
        });

        Game.startGame();
        Game.on('gameOver', (result) => {
            const wort = result.word; 
            return;
        });
    }
}
empty thornBOT
  • Consider reading #how-to-get-help to improve your question!
  • Explain what exactly your issue is.
  • Post the full error stack trace, not just the top part!
  • Show your code!
  • Issue solved? Press the button!
main merlin

wherever this error is throwing from is not coming from this piece of code