Updated interaction reply to have embed with color

This commit is contained in:
Marius Begby committed 2023-07-06 09:45:50 +02:00
1 parent 7437f67cbe
commit 4a7bf9ecb9
4 files changed
+113 -50

No files matched your search

+9 -3
View File
@@ -76,9 +76,15 @@ client.on('interactionCreate', async (interaction) => {
`Command '/${interaction.commandName}' failed unexpectedly.`
);
await interaction.editReply(
'There was an error while executing this command!'
);
await interaction.editReply({
embeds: [
new EmbedBuilder()
.setDescription(
`There was an error while executing this command!`
)
.setColor('#c70057')
]
});
}
});