mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 06:28:53 +00:00
Updated interaction reply to have embed with color
This commit is contained in:
1 parent
7437f67cbe
commit
4a7bf9ecb9
4 files changed
+113
-50
No files matched your search
@@ -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')
|
||||
]
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user