style(utils/deletecat): adding a real reply to the reaction

This commit is contained in:
Raphael 2025-08-18 10:50:27 +02:00
parent 8d7039f714
commit 0058a17e3e

View file

@ -43,12 +43,12 @@ export default {
} }
await category.delete(`Delete cat of ${category.name} (by ${interaction.username})`); await category.delete(`Delete cat of ${category.name} (by ${interaction.username})`);
await interaction.reply({ await interaction.reply({
content: `${emoji.answer.yes} | Cannot suppress the category's channel`, content: `${emoji.answer.yes} | Suppressed the ${category.name}`,
flags: MessageFlags.Ephemeral flags: MessageFlags.Ephemeral
}); });
} catch (err) { } catch (err) {
await interaction.reply({ await interaction.reply({
content: `${emoji.answer.error} | Cannot suppress the category's channel`, content: `${emoji.answer.error} | Cannot suppress the category's channels`,
flags: MessageFlags.Ephemeral flags: MessageFlags.Ephemeral
}); });
console.error(`Cannot suppress the category's channel:\n\t${err}`); console.error(`Cannot suppress the category's channel:\n\t${err}`);