Error

errors: {
components: { '0': { components: { _errors: [Array] } } }
},
message: 'Invalid Form Body'
},
code: 50035,
status: 400,
method: 'POST',
url: ''
}
errors: {
components: { '0': { components: { _errors: [Array] } } }
},
message: 'Invalid Form Body'
},
code: 50035,
status: 400,
method: 'POST',
url: ''
}
Code:
let components = interaction.message.components
interaction.update({components: [components]})
let components = interaction.message.components
interaction.update({components: [components]})
3 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
duck
duck2y ago
components appears to already be an array, but you put it in an array when updating you could also just call update with no params (or an empty object)
RichtigJoJo
RichtigJoJoOP2y ago
oh, thanks why does that not works?
let components = interaction.message.components
components[0].components[0].emoji = "✅"
interaction.update({components: components})
let components = interaction.message.components
components[0].components[0].emoji = "✅"
interaction.update({components: components})
oh ok thanks
Want results from more Discord servers?
Add your server