ReferenceError: blacklistLog is not defined
Code Block
Error
6 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- 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!
- ✅
Marked as resolved by OPFor whatever reason this file is the only file so far to give me this error despite me defining a embed the exact same way in other files? The error came out of nowhere too because I don't really touch this file.
That's a really basic JavaScript error, did you forget to put const before blacklistLog?
I mean I followed a djs tutorial and they didnt put const before it and it worked. 🤷🏿♂️ Just confused on why all of a sudden it doesnt for this file
You need to use const or let before defining a variable the first time. After that, you can use variable = to re-assign its value (if you defined it with let)
Alr thanks