RangeError [EMBED_FIELD_VALUE] MessageEmbed field values must be non-empty strings.
When i try to add more fields I get this error
RangeError [EMBED_FIELD_VALUE]: MessageEmbed field values must be non-empty strings.
when I try to add more fields based on some condition:
I get an error,
not sure why is this happening24 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.Embed field values must be non-empty stringupdate it to latest v13 at least npm i discord.js@13
up to date, audited 35 packages in 1s
now check it
it works when there is only one addFields option
but not together
same thing
I meant the version
yeah nothing changed, same error
wdym?
yeah error isn't from outdated version but you need to update anyway
error doesn't match code send full error
show vehicle.js line 53
it's a bit all over the place
show it all
it might not make any sense
isDefined returns an empty string
3rd field value
I think the issue is within the third field
vehicle properties that your put are undefined
nvm
i figured it out
i was actually returning an empty string
yeah bc value is always undefined
thank you for your help anyway