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•9mo 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
cruzaOP•9mo 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•9mo ago
Try doing this and see if it helps
.setFooter(`${botFooter}`)
.setFooter(`${botFooter}`)
ShompiFlen
ShompiFlen•9mo 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•9mo ago
ohhh right Yeah also you can set a timestamp in the footer by doing .setTimestamp()
cruza
cruzaOP•9mo ago
So how should I change the code? I want to use string as a variable
ShompiFlen
ShompiFlen•9mo 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•9mo ago
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
cruza
cruzaOP•9mo ago
No description
cruza
cruzaOP•9mo ago
is it right use? oh yes, terminal did not return an error solved, ty @ShompiFlen
Want results from more Discord servers?
Add your server