gillesheinesch / LenoxBot

🖥️ LenoxBot is a Discord bot that offers many cool new features to your Discord server!
https://lenoxbot.com
MIT License
249 stars 160 forks source link

codes error #932

Closed Aryansoam closed 2 years ago

Aryansoam commented 3 years ago

this is the command when trying to run the bot can anyone help fix this please /home/runner/LenoxBot/node_modules/discord.js/src/util/Collection.js:8 return this.map(e => (typeof e?.toJSON === 'function' ? e.toJSON() : Util.flatten(e))); ^

SyntaxError: Unexpected token '.' at wrapSafe (internal/modules/cjs/loader.js:915:16) at Module._compile (internal/modules/cjs/loader.js:963:27) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) at Module.load (internal/modules/cjs/loader.js:863:32) at Function.Module._load (internal/modules/cjs/loader.js:708:14) at Module.require (internal/modules/cjs/loader.js:887:19) at require (internal/modules/cjs/helpers.js:74:18) at Object. (/home/runner/LenoxBot/node_modules/discord.js/src/rest/RESTManager.js:7:20) at Module._compile (internal/modules/cjs/loader.js:999:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)

Dragonizedpizza commented 3 years ago

LenoxBot uses Discord.js's master branch, which requires Node.js v14.