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.
39 lines (36 loc) • 1.52 kB
JavaScript
;
/**
* MeoCord Framework
* Copyright (c) 2025 Ukasyah Rahmatullah Zada
* SPDX-License-Identifier: MIT
*/ /**
* Centralised metadata keys used across the framework's `Reflect` calls.
*
* Keeping them here prevents typos, documents the Inversify 8 key rename,
* and makes key changes a single-file edit.
*/ var MetadataKey = /*#__PURE__*/ function(MetadataKey) {
/**
* Set by Inversify 8's `injectable()` decorator.
* Renamed from the legacy `'inversify:injectable'` string used in older versions.
*/ MetadataKey["Injectable"] = "@inversifyjs/core/classIsInjectableFlagReflectKey";
/**
* Stores the Inversify `Container` instance on a controller class.
* Set by `MeoCordFactory.create()`, read by `@UseGuard` at runtime.
*/ MetadataKey["Container"] = "inversify:container";
/**
* Stores the `@MeoCord()` options object on the app class.
* Read by `MeoCordFactory.create()` to wire up the container.
*/ MetadataKey["AppOptions"] = "meocord:app-options";
/**
* TypeScript compiler-emitted metadata listing constructor parameter types.
* Requires `"emitDecoratorMetadata": true` in tsconfig.
*/ MetadataKey["ParamTypes"] = "design:paramtypes";
/**
* Stores the guard list applied to a method or class via `@UseGuard`.
*/ MetadataKey["Guards"] = "guards";
/**
* Stores the `CommandType` on a `@CommandBuilder` class.
*/ MetadataKey["CommandType"] = "commandType";
return MetadataKey;
}({});
exports.MetadataKey = MetadataKey;