feat(ui): add standard embed builders

Refs: #98
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
nocodeandClaude Opus 5 committed 2026-09-13 12:19:10 +02:00
1 parent ea7026e83c
commit 55c0322217
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.`);
}