Help with error: TypeError: (intermediate value).setName is not a function
I am getting this error when trying to execute a message delete command.
The goal is to delete a message using the message id of a message, then to send the user whose message was deleted, the log. I receive this error when it comes to sending the log.
Error:
Code:
The problem code is in my embed builder:
I don't understand why I'm receiving this error as I've defined the embed builder at the beginning of the file? So the .setName function shouldnt be sending an error.
I would love some help ;-; Thank you
3 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 OPIts setTitle()
for embed builders
oh my god i cant believe that flew past my head 😭 its been a long day
thank you