# SeedcordErrorCode

`enum` in `errors` · v0.2.1-next.1

<https://docs.seedcord.org/packages/errors/0.2.1-next.1/enums/seedcord-error-code>

All Seedcord error codes.

```ts
enum SeedcordErrorCode
```

## Members

- **AutocompleteMatchArmMissing** `AutocompleteMatchArmMissing` — An autocomplete handler's match() has no arm for the focused field that fired.
- **CliBootstrapWriteFailed** `CliBootstrapWriteFailed` — Unable to write the generated bootstrap file.
- **CliBuildFailed** `CliBuildFailed` — TypeScript reported diagnostics during emit.
- **CliBuildTsconfigNotFound** `CliBuildTsconfigNotFound` — Unable to locate a TypeScript config file for builds.
- **CliCancelled** `CliCancelled` — An interactive prompt was cancelled (Ctrl-C), so the command aborts without changes.
- **CliCleanAppFetchFailed** `CliCleanAppFetchFailed` — Could not resolve the application from the bot token during `commands --clean`.
- **CliCleanApplyNeedsYes** `CliCleanApplyNeedsYes` — `commands --clean --apply` ran in a non-interactive environment without `--yes`, where it cannot prompt.
- **CliCleanLargeBotUnconfirmed** `CliCleanLargeBotUnconfirmed` — `commands --clean --all-guilds` matched more guilds than the safety threshold without `--yes`.
- **CliCleanNoGuilds** `CliCleanNoGuilds` — `commands --clean` ran with neither --guild nor --all-guilds, so there is nothing to scan.
- **CliCleanPurgeAllGuilds** `CliCleanPurgeAllGuilds` — `commands --clean` combined --purge with --all-guilds, which would wipe every guild.
- **CliCodegenCommandsDirUnreadable** `CliCodegenCommandsDirUnreadable` — The commands directory could not be read during codegen.
- **CliCodegenDuplicateContextMenu** `CliCodegenDuplicateContextMenu` — Two context-menu commands of the same kind share a name during codegen.
- **CliCodegenDuplicateRoute** `CliCodegenDuplicateRoute` — Two commands resolve to the same slash route during codegen.
- **CliConfigEntryOutsideRoot** `CliConfigEntryOutsideRoot` — Entry file must be inside the configured root directory.
- **CliConfigInvalidBuild** `CliConfigInvalidBuild` — Config build options must be an object when provided.
- **CliConfigInvalidBuildBootstrap** `CliConfigInvalidBuildBootstrap` — Config build bootstrap must be a string when provided.
- **CliConfigInvalidBuildOutDir** `CliConfigInvalidBuildOutDir` — Config build outDir must be a string when provided.
- **CliConfigInvalidBuildTsconfig** `CliConfigInvalidBuildTsconfig` — Config build tsconfig must be a string when provided.
- **CliConfigInvalidExport** `CliConfigInvalidExport` — Config file default export was not an object.
- **CliConfigInvalidHmr** `CliConfigInvalidHmr` — Config hmr options must be an object when provided.
- **CliConfigInvalidHmrRestart** `CliConfigInvalidHmrRestart` — Config hmr restart patterns must be an array of strings when provided.
- **CliConfigInvalidRoot** `CliConfigInvalidRoot` — Config root was provided but not a string.
- **CliConfigInvalidTsconfig** `CliConfigInvalidTsconfig` — Config tsconfig must be a string when provided.
- **CliConfigMissingEntry** `CliConfigMissingEntry` — Config is missing the required entry string.
- **CliConfigMissingInstance** `CliConfigMissingInstance` — Config is missing the required instance string.
- **CliConfigNotFound** `CliConfigNotFound` — Unable to locate a Seedcord config file.
- **CliEntryNotFound** `CliEntryNotFound` — CLI entry file does not exist.
- **CliImportFailed** `CliImportFailed` — Native import and jiti fallback both failed.
- **CliInstanceInvalid** `CliInstanceInvalid` — Seedcord instance export is missing a start() method.
- **CliStartFailed** `CliStartFailed` — Seedcord instance threw during startup.
- **CliTsxImportFailed** `CliTsxImportFailed` — tsx failed to import the provided entry file.
- **ConfigEmojiUnresolved** `ConfigEmojiUnresolved` — One or more configured emojis could not be resolved at startup.
- **ConfigHandledExceptionWebhookInvalid** `ConfigHandledExceptionWebhookInvalid` — HANDLED_EXCEPTION_WEBHOOK_URL is present but fails URL validation.
- **ConfigHandledExceptionWebhookMissing** `ConfigHandledExceptionWebhookMissing` — HANDLED_EXCEPTION_WEBHOOK_URL is missing when configuring the reporter.
- **ConfigIncorrectDiscordToken** `ConfigIncorrectDiscordToken` — DISCORD_BOT_TOKEN is present but fails validation.
- **ConfigMissingDiscordToken** `ConfigMissingDiscordToken` — DISCORD_BOT_TOKEN is not present in the environment.
- **ConfigUnknownExceptionWebhookInvalid** `ConfigUnknownExceptionWebhookInvalid` — UNKNOWN_EXCEPTION_WEBHOOK_URL is present but fails URL validation.
- **ConfigUnknownExceptionWebhookMissing** `ConfigUnknownExceptionWebhookMissing` — UNKNOWN_EXCEPTION_WEBHOOK_URL is missing when configuring the reporter.
- **CoreBotRoleMissing** `CoreBotRoleMissing` — Bot role lookup failed within the provided guild.
- **CoreControllerPathMissing** `CoreControllerPathMissing` — A bot controller was constructed without its required handlers directory.
- **CorePluginAfterInit** `CorePluginAfterInit` — Plugins cannot be mutated after the core has finished initializing.
- **CorePluginKeyExists** `CorePluginKeyExists` — A plugin tried to register with a key that already exists.
- **CoreSingletonViolation** `CoreSingletonViolation` — Multiple Seedcord instances were created simultaneously.
- **CustomIdDuplicateFieldName** `CustomIdDuplicateFieldName` — A field name is declared more than once in the same customId chain.
- **CustomIdEmptyChoices** `CustomIdEmptyChoices` — A oneOf() field was declared with no choices.
- **CustomIdHandlerRouteMissing** `CustomIdHandlerRouteMissing` — A component handler is missing its route decorator (@ButtonRoute / @ModalRoute / @SelectMenuRoute).
- **CustomIdInvalidBounds** `CustomIdInvalidBounds` — An int() field was declared with min greater than max.
- **CustomIdInvalidPrefix** `CustomIdInvalidPrefix` — A customId definition prefix contains a reserved character (a colon or a control char).
- **CustomIdMatchArmMissing** `CustomIdMatchArmMissing` — match() received a decoded route with no matching arm.
- **CustomIdReservedFieldName** `CustomIdReservedFieldName` — A customId field name is integer-like, which JS would silently reorder.
- **CustomIdValueOutOfRange** `CustomIdValueOutOfRange` — A value passed to encode() is outside its field's allowed range.
- **CustomIdWireTooLong** `CustomIdWireTooLong` — An encoded customId exceeds Discord's 100-character limit.
- **DecoratorCommandAlreadyRegistered** `DecoratorCommandAlreadyRegistered` — A command decorator attempted to re-register an existing command scope.
- **DecoratorCommandGlobalWithGuilds** `DecoratorCommandGlobalWithGuilds` — A global command decorator specified guild IDs, which is not allowed.
- **DecoratorCommandGuildWithoutGuilds** `DecoratorCommandGuildWithoutGuilds` — A guild command decorator omitted the required guild ID list.
- **DecoratorInteractionEventFilter** `DecoratorInteractionEventFilter` — Interaction middleware decorated with disallowed event filters.
- **DecoratorInvalidMiddlewarePriority** `DecoratorInvalidMiddlewarePriority` — Middleware priority provided by the decorator was not a finite number.
- **DecoratorMethodNotFound** `DecoratorMethodNotFound` — A decorator could not find the original method being decorated.
- **EventEmitterWaitForAborted** `EventEmitterWaitForAborted` — StrictEventEmitter.waitFor was aborted via its AbortSignal.
- **EventEmitterWaitForTimeout** `EventEmitterWaitForTimeout` — StrictEventEmitter.waitFor exceeded its configured timeout.
- **EventMatchArmMissing** `EventMatchArmMissing` — An event handler's match() has no arm for the event name that fired.
- **EventMiddlewareNameUnavailable** `EventMiddlewareNameUnavailable` — Event middleware read `this.eventName` but was constructed without a fired event name.
- **GateInvalidCooldownDuration** `GateInvalidCooldownDuration` — A Cooldown gate was given a duration string that is not a well-formed positive duration.
- **LifecycleAddAfterCompletion** `LifecycleAddAfterCompletion` — Attempted to add lifecycle tasks after startup already completed.
- **LifecycleAddDuringRun** `LifecycleAddDuringRun` — Attempted to add lifecycle tasks while startup is still running.
- **LifecyclePhaseFailures** `LifecyclePhaseFailures` — Startup phase completed with one or more task failures.
- **LifecycleRemoveDuringRun** `LifecycleRemoveDuringRun` — Attempted to remove lifecycle tasks while startup is still running.
- **LifecycleTaskTimeout** `LifecycleTaskTimeout` — A lifecycle task exceeded its configured timeout.
- **LifecycleUnknownPhase** `LifecycleUnknownPhase` — Provided lifecycle phase identifier is not recognized.
- **PaginationDuplicateControls** `PaginationDuplicateControls` — A control row repeats the same control, which would collide the custom_ids.
- **PaginationEmptyControls** `PaginationEmptyControls` — A control row was assembled with no controls.
- **PaginationInvalidPerPage** `PaginationInvalidPerPage` — A paginator source was given a perPage that is not a positive integer.
- **PaginationTooManyControls** `PaginationTooManyControls` — A control row was assembled with more than the five buttons Discord allows.
- **PluginKpgDisconnectFailed** `PluginKpgDisconnectFailed` — Postgres pool failed to close cleanly during shutdown.
- **PluginKpgInvalidMigrationModule** `PluginKpgInvalidMigrationModule` — A migration module failed to export the expected functions.
- **PluginKpgInvalidStepCount** `PluginKpgInvalidStepCount` — Migration manager received an invalid step count.
- **PluginKpgNoMigrationFiles** `PluginKpgNoMigrationFiles` — No migration files were found for execution.
- **PluginKpgNonErrorFailure** `PluginKpgNonErrorFailure` — An arbitrary (non-Error) failure was reported by a migration.
- **PluginKpgServiceDecoratorMissing** `PluginKpgServiceDecoratorMissing` — KPG service class is missing the `@RegisterKpgService` decorator.
- **PluginKpgServicesNotReady** `PluginKpgServicesNotReady` — KPG `services` was accessed before the plugin finished initializing.
- **PluginKpgServiceTableMissing** `PluginKpgServiceTableMissing` — KPG service class is missing its table metadata.
- **PluginKpgUnknownDirection** `PluginKpgUnknownDirection` — Migration direction was not recognized.
- **PluginKpgUnresolvedMigrationsPath** `PluginKpgUnresolvedMigrationsPath` — Provided migrations path could not be resolved.
- **PluginMongoConnectionFailed** `PluginMongoConnectionFailed` — Mongo client failed to establish a connection.
- **PluginMongoDisconnectFailed** `PluginMongoDisconnectFailed` — Mongo client failed to disconnect cleanly during shutdown.
- **PluginMongoModelDecoratorMissing** `PluginMongoModelDecoratorMissing` — Mongo model class is missing the `@RegisterMongoModel` decorator.
- **PluginMongoServiceDecoratorMissing** `PluginMongoServiceDecoratorMissing` — Mongo service class is missing the `@RegisterMongoService` decorator.
- **PluginMongoServicesNotReady** `PluginMongoServicesNotReady` — Mongo `services` was accessed before the plugin finished initializing.
- **SlashMatchArmMissing** `SlashMatchArmMissing` — A slash handler's match() has no arm for the command route that fired.
