Yet another Fluxer bot built with TypeScript and Bun
at feat/sqlite 15 lines 333 B view raw
1import "reflect-metadata"; 2 3export interface CommandMeta { 4 name: string; 5 aliases?: string[]; 6 description: string; 7} 8 9export const COMMAND_META_KEY = Symbol("fluxer:command"); 10 11export function Command(meta: CommandMeta): ClassDecorator { 12 return (target) => { 13 Reflect.defineMetadata(COMMAND_META_KEY, meta, target); 14 }; 15}