#Why does EmbedBuilder not allow an empty string as an initial field value?

6 messages · Page 1 of 1 (latest)

jovial sedge
#

What if my plan is to edit/set the value later by indexing the field I need? This isn't really a problem or anything, but it's just annoying that I have to set it to an empty string before doing what I need. Is there like a genuine reason to do this?

ripe matrix
#

• 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.

frail vector
#

Yes, the reason is to have validated builders always represent a valid state. You can either set it to a placeholder to later replace, build your fields array outside of the builder and pass it in once ready or use the unvalidated unsafe builders

jovial sedge
#

I was not aware of "unsafe builders"

#

well at the end of the day it's just an ocd problem on my end

#

thanks for the answer