#err when message sent to a user.

10 messages · Page 1 of 1 (latest)

shell void
#

When all is args[0] I'm trying to send a message to the user with 8 embeds.
user.send({ embeds: [rule1, rule2, rule3, rule4, rule5, rule6, rule7, rule8], components: [buttons] });
These are all of my embeds: https://srcb.in/tQ1L3BAGKW I'm using embed objects.
If it helps this is the entire command: https://srcb.in/FJTZ6GeNvp

#

Sorry error is:

DiscordAPIError: Invalid Form Body
embeds[0].description: This field is required
``` Entire error: https://srcb.in/t9tSGhuHE9
#

ping me please.

#

Can I not use embed objects this way?

open mantle
#

you can, the issue is most likely related to you pushing an entire array into the rules array

#

push takes rest params

shell void
open mantle
#

yes, log the rules array after pushing and you'll see

shell void
#

Ah. I just removed that push and it works. I don't even remember WHY I was pushing it in the first place.