'MessageEmbed' is declared but its value is never read.
I have no idea why this has happened, its my first encounter with this error.
![No description](https://cdn.answeroverflow.com/1188069836920733696/image.png)
![No description](https://cdn.answeroverflow.com/1188069837256282112/image.png)
47 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 staff
Yes, this code is above the other one.
full stack error.
im wondering why you have 3 imports to discord.js nevertheless this means your field values hasnt got any data
also, the warning that you get is because you deconstruct MessageEmbed but you never call it
You call Discord.MessageEmbed
because of this
![No description](https://cdn.answeroverflow.com/1188071188308693002/image.png)
you indeed never use it
instead you’re using Discord.MessageEmbed
when I remove it its the same error though
as you're told, why do you have 3 imports
Either destructure or dont, but not both
When I delete the imports it gives the same error
.
so pick what you want
How do I desturcture it exactly
![mdn](https://cdn.discordapp.com/emojis/957801942573256854.png)
Pretty basic js
Okay but why do I need to destructure if I just delete the imports and dont use them?