err when message sent to a user.

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
3 Replies
Erin
Erin2y ago
Sorry error is:
DiscordAPIError: Invalid Form Body
embeds[0].description: This field is required
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? huh?
Erin
Erin2y ago
Rest parameters - JavaScript | MDN
The rest parameter syntax allows a function to accept an indefinite number of arguments as an array, providing a way to represent variadic functions in JavaScript.
Erin
Erin2y ago
Ah. I just removed that push and it works. I don't even remember WHY I was pushing it in the first place. ty!