ValidationError: Expected the value to be an object, but received string instead

heyo, why does it dont lemme using strings? 😩
No description
10 Replies
d.js toolkit
d.js toolkit•3mo ago
- 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 OP
cruza
cruza•3mo ago
I just started using djs v14 yesterday. This did not happen to me in older versions. I may have missed the changes
astro
astro•3mo ago
Try doing this and see if it helps
.setFooter(`${botFooter}`)
.setFooter(`${botFooter}`)
ShompiFlen
ShompiFlen•3mo ago
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'}
astro
astro•3mo ago
ohhh right Yeah also you can set a timestamp in the footer by doing .setTimestamp()
cruza
cruza•3mo ago
So how should I change the code? I want to use string as a variable
ShompiFlen
ShompiFlen•3mo ago
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
ShompiFlen
ShompiFlen•3mo ago
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
cruza
cruza•3mo ago
No description
cruza
cruza•3mo ago
is it right use? oh yes, terminal did not return an error solved, ty @ShompiFlen