diff --git a/src/handler/sern/sern.ts b/src/handler/sern/sern.ts index 850f48f..42ad253 100644 --- a/src/handler/sern/sern.ts +++ b/src/handler/sern/sern.ts @@ -9,6 +9,7 @@ import type { Utils } from "../utils/preprocessors/args"; export namespace Sern { + export class Handler { private wrapper: Sern.Wrapper; private msgHandler : MsgHandler = new MsgHandler(); @@ -74,6 +75,8 @@ export namespace Sern { delegate : (message: Message, args: Ok ) => Awaitable | void> parse? : (message: Message, args: string) => Utils.ArgType } + + } class MsgHandler { diff --git a/src/index.ts b/src/index.ts index 99d246c..7f95b3c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,5 @@ import { Sern } from "./handler/sern/sern"; import { Utils } from "./handler/utils/preprocessors/args" -module.exports.Sern = Sern; -module.exports.Utils = Utils; -export default { Sern, Utils }; \ No newline at end of file +module.exports = { Sern, Utils }; +export { Sern, Utils }; \ No newline at end of file