UNPKG

meocord

Version:

Decorator-based Discord bot framework built on discord.js. Brings NestJS-style controllers, dependency injection, guards, and testing utilities to bot development — with a full CLI and TypeScript-first design.

14 lines (11 loc) 355 B
import { EmbedBuilder } from 'discord.js'; import '../common/logger.js'; import { Theme } from '../common/theme.js'; const createErrorEmbed = (description)=>{ const embed = new EmbedBuilder(); embed.setColor(Theme.errorColor); embed.setTitle('Oops!'); embed.setDescription(description); return embed; }; export { createErrorEmbed };