feat(ui): add standard embed builders

Refs: #98
This commit is contained in:
nocode committed 2026-09-13 12:25:05 +02:00
1 parent f56e837e58
commit 94dab89791
1 file changed
+25
+25
View File
@@ -0,0 +1,25 @@
import { EmbedBuilder } from 'discord.js';
import { BOT_NAME, COLORS } from '../config/constants.js';
/** Base embed with the shared FWS-Bot visual identity (M12-T02). */
export function baseEmbed(color = COLORS.primary) {
return new EmbedBuilder().setColor(color).setFooter({ text: BOT_NAME }).setTimestamp();
}
export function infoEmbed(title, description) {
return baseEmbed(COLORS.info).setTitle(title).setDescription(description);
}
export function successEmbed(description) {
return baseEmbed(COLORS.success).setTitle('Succès').setDescription(description);
}
export function errorEmbed(description) {
return baseEmbed(COLORS.error).setTitle('Erreur').setDescription(description);
}
export function notImplementedEmbed(feature) {
return baseEmbed(COLORS.warning)
.setTitle('Bientôt disponible')
.setDescription(`La fonctionnalité **${feature}** n'est pas encore implémentée.`);
}