weird error

just wanted to start my bot and this happened - it doesnt seem like a problem with my code bc it worked before on another machine...is it smth to do with node version?
ReferenceError: guild is not defined
at eval (eval at _eval (/home/banana/uwu-bot-v4/node_modules/discord.js/src/client/Client.js:470:12), <anonymous>:9:23)
at eval (eval at _eval (/home/banana/uwu-bot-v4/node_modules/discord.js/src/client/Client.js:470:12), <anonymous>:23:7)
at UwUClient._eval (/home/banana/uwu-bot-v4/node_modules/discord.js/src/client/Client.js:470:12)
at ShardClientUtil._handleMessage (/home/banana/uwu-bot-v4/node_modules/discord.js/src/sharding/ShardClientUtil.js:194:82)
at process.emit (node:events:513:28)
at emit (node:internal/child_process:937:14)
at process.processTicksAndRejections (node:internal/process/task_queues:83:21)
ReferenceError: guild is not defined
at eval (eval at _eval (/home/banana/uwu-bot-v4/node_modules/discord.js/src/client/Client.js:470:12), <anonymous>:9:23)
at eval (eval at _eval (/home/banana/uwu-bot-v4/node_modules/discord.js/src/client/Client.js:470:12), <anonymous>:23:7)
at UwUClient._eval (/home/banana/uwu-bot-v4/node_modules/discord.js/src/client/Client.js:470:12)
at ShardClientUtil._handleMessage (/home/banana/uwu-bot-v4/node_modules/discord.js/src/sharding/ShardClientUtil.js:194:82)
at process.emit (node:events:513:28)
at emit (node:internal/child_process:937:14)
at process.processTicksAndRejections (node:internal/process/task_queues:83:21)
3 Replies
d.js toolkit
d.js toolkit17mo ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
banana ✿
banana ✿OP17mo ago
discord.js version is 14.3.0 and node versinois 18.16.1
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server