Direct Embed Integration
It just works, but isn't the cleanest way of using embeds.
This goes inside the "Receiving the Event" block.
if (command === 'help') {
client.api.interactions(interaction.id, interaction.token).callback.post({
data: {
type: 4,
data: {
content: 'help',
embeds: [
new Discord.MessageEmbed()
.setColor('#5E17EB')
.setTitle("Echo!")
.setThumbnail(interaction.member.user.displayAvatarURL)
.setDescription('description here')
.setAuthor(interaction.member.user.username)
]
}
}
})
}
Last updated
Was this helpful?