discord.js Buttons to accept an request
Solution 1:
The proper success style is SUCCESS
, not SUCESS
. Changing that should result in a valid message component:
const row = new MessageActionRow()
.addComponents(
new MessageButton()
.setCustomId('accept')
.setLabel('Aceitar')
.setStyle('SUCCESS')
)
...