#Don't understand where to write this code.

6 messages · Page 1 of 1 (latest)

muted delta
#

Please explain where need to write this code. I have re-read the documentation on this code more than a dozen times and still did not understand. When I try to write this code in files that are responsible for events, I get an error:

node:events:497
 throw er; // Unhandled 'error' event
 ^

ReferenceError: client is not defined

A similar error occurred when trying to insert this code into the command itself.

stoic carbonBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • 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!
nocturne sedge
void silo
muted delta
void silo
#

Well, it requires the client to be defined in the scope, which it expects to be done already, as it's just an example code