Configuration
App options
ClassProviderA provider that binds a class's instance under a token, made once and shared, with its own dependencies injected.
CooldownStoreFailureWhat a call gets when the cooldown store throws, rejects or does not answer in time.
FactoryProviderA provider that binds what a function returns, called once with the values of
inject, in order.MeoCordOptionsWhat
@MeoCordtakes: the app's controllers, services and client options, and what applies to every handler.MessageCommandOptionsHow message commands start and match across the app, set in
@MeoCord({ messages }).MessageHandlerOptionsWhat one message command sets for itself, over the app's
messagesoptions.MessageHelpOptionsThe words the built-in help command answers to, as
@MeoCord({ messages: { help } })takes them.MessageParamTypeA param type an app adds for its message patterns, such as
{accent:color}: it reads a word as a value.MessagePrefixOne prefix or several that start a message command, such as
'!'or['!', '?'];''stands for none.ProviderA value
@MeoCord({ providers })or a testing module binds under a token, for classes to@Inject.RootThemeThe app's theme, as
@MeoCord({ theme })takes it.ThemeOverridePart of a theme, as a scope sets it: any role, of MeoCord's or the app's, and nothing unknown.
ThemeResolverA class, decorated with
@Service(), that looks themes up with the app's services, as@MeoCord({ themeFor })takes it in place ofThemeResolvers.ThemeResolversThemes that depend on where a call comes from, as
@MeoCord({ themeFor })takes them, or a class implementingThemeResolver.ValueProviderA provider that binds an existing value, such as a settings object or a configured client, as it is.
Config file
CommandRegistrationConfigWhere and whether MeoCord registers the application's commands with Discord, set as
meocord.config.ts'scommands.MeoCordConfigThe configuration
meocord.config.tsexports: the bot's token, how it is built, and how it registers and shards.RsbuildConfigRsbuild's configuration, as
meocord.config.ts'srsbuildhook receives and returns it.ShardingConfigHow the bot splits its gateway connection into shards, set as
meocord.config.ts'ssharding.
ESLint
defaultThe ESLint configuration a new MeoCord app's
eslint.config.tsexports, extended by the app's own rules.typescriptConfigLints TypeScript as a new MeoCord app does: type-aware rules, Prettier, and import cycles that break injection.