Slash Commands Embeds
Im currently working on a discord bot and i am on the last step which is making the commands. i need help though. I wanna know if i am able to run the command and the bot responds in an embed message

discord.jsasync chatInputRun(interaction) {
const embed = new EmbedBuilder
.setTitle("hi");
interaction.reply({ embeds: [embed] });
}
}