Error when creating embed
I'm getting the following error when trying to create an embed. My main goal is to let the user enter the name, select an image and unix time to create an embed.
My code looks as follows:
I logged all the variables title, name, unix, image and color: the values seem to be ok
[29.07.2023 16:59.54.946] [LOG] 🔥 Neuer Fire Sale!
[29.07.2023 16:59.54.947] [LOG] testa
[29.07.2023 16:59.54.947] [LOG] 1690649796
[29.07.2023 16:59.54.948] [LOG] https://cdn.discordapp.com/ephemeral-attachments/1066036486497112075/1134862857813622804/7ify6m.jpg
[29.07.2023 16:59.54.948] [LOG] #e76604
5 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!Seem like color is the problem
That's what the error says... yeah. But in other files the color is not the problem so I think it has to be something different
Your error suggests you've imported
EmbedBuilder
from @discordjs/builders
rather than discord.js
You'll need to import from discord.js for colors to be resolvedI knew it would be some stupid issue... thx