MastaYoda
DIAdiscord.js - Imagine an app
•Created by MastaYoda on 7/10/2023 in #djs-questions
ReferenceError: client is not defined
I have followed the guide on "https://discordjs.guide/#before-you-begin" and when I run the code "node deploy-commands.js" I am getting this error:
ReferenceError: client is not defined
at Object.<anonymous> (C:\Users\Tiaan\OneDrive\Desktop\Mario\commands\fun\wahoo.js:12:1)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
at Module.require (node:internal/modules/cjs/loader:1143:19)
at require (node:internal/modules/cjs/helpers:110:18)
at Object.<anonymous> (C:\Users\Tiaan\OneDrive\Desktop\Mario\deploy-commands.js:18:19)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
Is it possible I have the latest version installed but I'm using an old guide?
18 replies