ValidationError: Expected the value to be an object, but received string instead
heyo, why does it dont lemme using strings? 😩
10 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 OPI just started using djs v14 yesterday. This did not happen to me in older versions. I may have missed the changes
Try doing this and see if it helps
this is not going to help either
in v14 EmbedBuilder.setFooter() takes an object
lemme get the docs
okay it should be
{text: 'string', iconURL: 'image.jpg'}
ohhh right
Yeah also you can set a timestamp in the footer by doing .setTimestamp()
So how should I change the code? I want to use string as a variable
you can't you have to pass an object with the string on it, see the example i sent
iconURL is optional you don't have to specify it
here you have the guide for v14 https://discordjs.guide/popular-topics/embeds.html#using-the-embed-constructor
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
is it right use?
oh yes, terminal did not return an error
solved, ty @ShompiFlen