diff --git a/src/commands.ts b/src/commands.ts index 1e54395..7894a09 100644 --- a/src/commands.ts +++ b/src/commands.ts @@ -27,7 +27,6 @@ function uniqueId(t: CommandType) { const am = (appBitField & t) !== 0 ? 'A' : 'C'; return am + apiType(t); } - /** * @since 1.0.0 The wrapper function to define command modules for sern * @param mod @@ -90,3 +89,35 @@ export function discordEvent(mod: { ...mod, }); } + +///** +// * @Experimental +// * Will be refactored / changed in future +// */ +//export abstract class CommandExecutable { +// abstract type: Type; +// private static _fullPath = filePath(); +// name = filename(CommandExecutable._fullPath); +// [sernMeta] = { +// id: ``, +// fullPath: CommandExecutable._fullPath +// } +// plugins: InitPlugin[] = []; +// onEvent: ControlPlugin[] = []; +// abstract execute() : Awaitable +// +//} +///** +// * @Experimental +// * Will be refactored in future +// */ +//export abstract class EventExecutable { +// abstract type: Type; +// [sernMeta] = { +// id: '', +// fullPath: '' +// } +// plugins: InitPlugin[] = []; +// onEvent: ControlPlugin[] = []; +// abstract execute(): Awaitable; +//} diff --git a/src/index.ts b/src/index.ts index e38453d..6acb213 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,8 +1,9 @@ export * as Sern from './handler/sern'; +export * from './types/core'; export * from './types/handler'; export * from './types/module'; export * from './types/plugin'; export * from './core'; export { controller } from './handler/sern'; -export { commandModule, eventModule } from './commands'; -export { Context } from './classic/context'; +export { commandModule, eventModule, discordEvent } from './commands'; +