1 file changed
+25
@@ -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.`);
|
||||
}
|
||||
Reference in new issue
Block a user