Enumerrorsv0.5.1SeedcordErrorCodeAll Seedcord error codes. enum SeedcordErrorCodeMembersConfigEmojiUnresolved= 1001One or more configured emojis could not be resolved at startup. ConfigWebhookUrlInvalid= 1002A webhook reporter's env var is set but fails webhook URL validation. ConfigWebhookNotFound= 1003A configured webhook does not exist on Discord (deleted, or a wrong id or token). ConfigManifestNotGenerated= 1004The generated route manifest was imported before seedcord build generated it. ConfigMissingEnv= 1005A required environment variable is not present. ConfigInvalidEnv= 1006An environment variable is present and fails validation. MissingGuildsIntent= 1007A command usable in a guild is registered without the Guilds intent that caches guilds. UnsupportedNodeVersion= 1008The running Node version is below the range seedcord declares in engines. ConfigTokenUnreadable= 1009DISCORD_BOT_TOKEN passed its shape check and carries no readable application id. LifecycleAddAfterCompletion= 1101Attempted to add lifecycle tasks after startup already completed. LifecycleAddDuringRun= 1102Attempted to add lifecycle tasks while startup is still running. LifecycleRemoveDuringRun= 1103Attempted to remove lifecycle tasks while startup is still running. LifecycleUnknownPhase= 1104Provided lifecycle phase identifier is not recognized. LifecyclePhaseFailures= 1105Startup phase completed with one or more task failures. LifecycleTaskTimeout= 1106A lifecycle task exceeded its configured timeout. LifecycleRestartAfterFailure= 1107A host whose startup failed was started again. CoreSingletonViolation= 1201Multiple Seedcord instances were created simultaneously. CorePluginAfterInit= 1202Plugins cannot be mutated after the core has finished initializing. CorePluginKeyExists= 1203A plugin tried to register with a key that already exists. CoreBotRoleMissing= 1204Bot role lookup failed within the provided guild. CoreControllerPathMissing= 1205A bot controller was constructed without its required handlers directory. CoreDirectoryImportFailed= 1206A file in a scanned directory threw while being imported. CoreDirectoryUnreadable= 1207A scanned directory could not be read. CorePluginReservedChannel= 1208A plugin was attached under a key the framework logs on. CoreApplicationUnavailable= 1209The application id was read before startup resolved it. CoreAccessorUnresolved= 1210A generated accessor was read before startup resolved its values. CoreLifecycleUnavailable= 1211A startup or shutdown task was added to a core built by createSeedcord. CoreBusEmitUnavailable= 1212emit was called on the bus. It reaches listeners and skips every subscriber. DecoratorInteractionEventFilter= 1301Interaction middleware decorated with disallowed event filters. DecoratorCommandAlreadyRegistered= 1302A command decorator attempted to re-register an existing command scope. DecoratorCommandGlobalWithGuilds= 1303A global command decorator specified guild IDs, which is not allowed. DecoratorCommandGuildWithoutGuilds= 1304A guild command decorator omitted the required guild ID list. DecoratorInvalidMiddlewarePriority= 1305Middleware priority provided by the decorator was not a finite number. DecoratorWebhookUrlMissing= 1306A WebhookLog subclass is missing its @WebhookUrl decorator. InteractionDuplicateRoute= 1401Two interaction handlers registered the same route within a scope. InteractionDuplicateMiddleware= 1402Two different interaction middleware classes share a class name. InteractionRouteExportMissing= 1403A route manifest row gives an export name its module does not have. SubscriberRouteNotASubscriber= 1404A subscriber manifest row specifies an export that does not extend Subscriber. RouteModuleLoadFailed= 1405A manifest row's module threw while importing. ReplyIllegalAckState= 1501A reply method was called in an ack state where it is illegal. ReplyComponentSerialization= 1502A reply component failed to serialize to raw API data. ReplyForeignEditTarget= 1503edit() was passed a message the interaction did not send. ReplyUpdateWithoutSource= 1504update() or deferUpdate() was called on a modal with no source message. ReplyCallbackMissingMessage= 1505A withResponse interaction callback returned no created message. CustomIdInvalidPrefix= 1601A customId definition prefix contains a reserved character (a colon or a control char). CustomIdReservedFieldName= 1602A customId field name is integer-like, which JS would silently reorder. CustomIdEmptyChoices= 1603A oneOf() field was declared with no choices. CustomIdInvalidBounds= 1604An int() field was declared with min greater than max. CustomIdValueOutOfRange= 1605A value passed to encode() is outside its field's allowed range. CustomIdWireTooLong= 1606An encoded customId exceeds Discord's 100-character limit. CustomIdDuplicateFieldName= 1607A field name is declared more than once in the same customId chain. CustomIdHandlerRouteMissing= 1608A component handler is missing its route decorator (@ButtonRoute / @ModalRoute / @SelectMenuRoute). CustomIdMatchArmMissing= 1609match() received a decoded route with no matching arm. SlashMatchArmMissing= 1610A slash handler's match() has no arm for the command route that fired. AutocompleteMatchArmMissing= 1611An autocomplete handler's match() has no arm for the focused field that fired. EventMatchArmMissing= 1612An event handler's match() has no arm for the event name that fired. EventMiddlewareNameUnavailable= 1613Event middleware read this.eventName but was constructed without a fired event name. AutocompleteNoFocusedOption= 1614An autocomplete payload carried no focused option. ContextMenuMatchArmMissing= 1615A context menu handler's match() has no arm for the command name that fired. ModalFieldNotFound= 1616No field in the submitted modal carries the requested custom id. ModalFieldWrongKind= 1617A modal field getter was called on a field of another kind. ModalFieldEmpty= 1618Nothing was picked in a modal field read as required. ModalFieldChannelType= 1619A channel select field picked a channel outside the types getSelectedChannels() allows. CustomIdWireStale= 1620A customId was minted under an older shape of the same definition. CustomIdWireInvalid= 1621A customId wire is corrupt, truncated, or was minted by a different definition. GateInvalidCooldownDuration= 1701A Cooldown gate was given a duration string that is not a well-formed positive duration. PaginationInvalidPerPage= 1801A paginator source was given a perPage that is not a positive integer. PaginationTooManyControls= 1802A control row was assembled with more than the five buttons Discord allows. PaginationEmptyControls= 1803A control row was assembled with no controls. PaginationDuplicateControls= 1804A control row repeats the same control, which would collide the custom_ids. ColorUnresolvable= 1901A color value could not be resolved to a Discord color integer. ColorOutOfRange= 1902A resolved color fell outside Discord's 0x000000 to 0xffffff range. PluginOptionsRejected= 2001A plugin's constructor rejected its options through rejectOptions. PluginDisposeFailures= 2002Two or more plugins threw while disposing. PluginInvalidLifecycleTimeout= 2003A plugin declared a lifecycle timeout that is not a positive, finite number of milliseconds. PluginMongooseServiceDecoratorMissing= 2101Mongoose service class is missing the @RegisterMongooseService decorator. PluginMongooseConnectionFailed= 2102Mongoose client failed to establish a connection. PluginMongooseDisconnectFailed= 2103Mongoose client failed to disconnect cleanly during shutdown. PluginMongooseServicesNotReady= 2104Mongoose services was accessed before the plugin finished initializing. PluginMongooseModelCreationFailed= 2105Mongoose rejected the model, usually a duplicate model name or an absent schema. PluginMongooseModelNameMissing= 2106A mongoose service was registered with an empty model name override. PluginKyselyServiceDecoratorMissing= 2201Kysely service class is missing the @RegisterKyselyService decorator. PluginKyselyServiceTableMissing= 2202Kysely service class is missing its table metadata. PluginKyselyInvalidStepCount= 2203Migration manager received an invalid step count. PluginKyselyUnknownDirection= 2204Migration direction was not recognized. PluginKyselyUnresolvedMigrationsPath= 2205Provided migrations path could not be resolved. PluginKyselyNoMigrationFiles= 2206No migration files were found for execution. PluginKyselyInvalidMigrationModule= 2207A migration module failed to export the expected functions. PluginKyselyNonErrorFailure= 2208An arbitrary (non-Error) failure was reported by a migration. PluginKyselyDisconnectFailed= 2209Postgres pool failed to close cleanly during shutdown. PluginKyselyServicesNotReady= 2210Kysely services was accessed before the plugin finished initializing. PluginKyselyConnectionFailed= 2211Postgres pool failed to establish a connection. PluginKyselyBootstrapFailed= 2212Bootstrapper failed to ensure the target Postgres database exists. CliConfigInvalidExport= 3101Config file default export was not an object. CliConfigMissingInstance= 3102Config is missing the required instance string. CliConfigNotFound= 3103Unable to locate a Seedcord config file. CliEntryNotFound= 3104CLI entry file does not exist. CliTsxImportFailed= 3105tsx failed to import the provided entry file. CliImportFailed= 3106Native import and jiti fallback both failed. CliInstanceInvalid= 3107Seedcord instance export is missing a start() method. CliStartFailed= 3108Seedcord instance threw during startup. CliConfigMissingEntry= 3109Config is missing the required entry string. CliConfigEntryOutsideRoot= 3110Entry file must be inside the configured root directory. CliBuildTsconfigNotFound= 3111Unable to locate a TypeScript config file for builds. CliBuildFailed= 3112TypeScript reported diagnostics during emit. CliBootstrapWriteFailed= 3113Unable to write the generated bootstrap file. CliCodegenDuplicateRoute= 3114Two commands resolve to the same slash route during codegen. CliCodegenCommandsDirUnreadable= 3115The commands directory could not be read during codegen. CliCodegenDuplicateContextMenu= 3116Two context-menu commands of the same kind share a name during codegen. CliCleanAppFetchFailed= 3117Could not resolve the application from the bot token during commands --clean. CliCleanNoGuilds= 3118commands --clean ran with neither --guild nor --all-guilds. CliCleanPurgeAllGuilds= 3119commands --clean combined --purge with --all-guilds, which would wipe every guild. CliCancelled= 3120An interactive prompt was cancelled (Ctrl-C), so the command aborts without changes. CliCleanLargeBotUnconfirmed= 3121commands --clean --all-guilds matched more guilds than the safety threshold without --yes. CliCleanApplyNeedsYes= 3122commands --clean --apply ran in a non-interactive environment without --yes, where it cannot prompt. CliTunnelUrlUnavailable= 3123The cloudflared metrics server never reported a quick-tunnel hostname. CliTunnelNotVerified= 3124Discord rejected the tunnel URL as an interactions endpoint. CliTunnelUnreachable= 3125The tunnel URL never answered its health probe. CliConfigInvalidField= 3126A config field is present with the wrong shape. CliCodegenCommandConstructorThrew= 3127A class carrying @RegisterCommand threw while codegen constructed it. CreateCancelled= 3201A create prompt was cancelled (Ctrl-C), and nothing has been written yet. CreateFlagNotApplicable= 3202A flag supplied an answer for a question the earlier answers skip. CreateInvalidAnswer= 3203A flag carried a value its question rejects. CreateBadUsage= 3204The command line did not parse. CreateTargetNotEmpty= 3205The target path already holds something. CreateStepFailed= 3206A command the scaffolder shelled out to exited non-zero.
ConfigWebhookNotFound= 1003A configured webhook does not exist on Discord (deleted, or a wrong id or token).
ConfigManifestNotGenerated= 1004The generated route manifest was imported before seedcord build generated it.
MissingGuildsIntent= 1007A command usable in a guild is registered without the Guilds intent that caches guilds.
UnsupportedNodeVersion= 1008The running Node version is below the range seedcord declares in engines.
ConfigTokenUnreadable= 1009DISCORD_BOT_TOKEN passed its shape check and carries no readable application id.
CoreControllerPathMissing= 1205A bot controller was constructed without its required handlers directory.
CoreLifecycleUnavailable= 1211A startup or shutdown task was added to a core built by createSeedcord.
CoreBusEmitUnavailable= 1212emit was called on the bus. It reaches listeners and skips every subscriber.
DecoratorCommandAlreadyRegistered= 1302A command decorator attempted to re-register an existing command scope.
DecoratorCommandGlobalWithGuilds= 1303A global command decorator specified guild IDs, which is not allowed.
DecoratorCommandGuildWithoutGuilds= 1304A guild command decorator omitted the required guild ID list.
DecoratorInvalidMiddlewarePriority= 1305Middleware priority provided by the decorator was not a finite number.
InteractionRouteExportMissing= 1403A route manifest row gives an export name its module does not have.
SubscriberRouteNotASubscriber= 1404A subscriber manifest row specifies an export that does not extend Subscriber.
ReplyUpdateWithoutSource= 1504update() or deferUpdate() was called on a modal with no source message.
CustomIdInvalidPrefix= 1601A customId definition prefix contains a reserved character (a colon or a control char).
CustomIdReservedFieldName= 1602A customId field name is integer-like, which JS would silently reorder.
CustomIdHandlerRouteMissing= 1608A component handler is missing its route decorator (@ButtonRoute / @ModalRoute / @SelectMenuRoute).
AutocompleteMatchArmMissing= 1611An autocomplete handler's match() has no arm for the focused field that fired.
EventMiddlewareNameUnavailable= 1613Event middleware read this.eventName but was constructed without a fired event name.
ContextMenuMatchArmMissing= 1615A context menu handler's match() has no arm for the command name that fired.
ModalFieldChannelType= 1619A channel select field picked a channel outside the types getSelectedChannels() allows.
CustomIdWireInvalid= 1621A customId wire is corrupt, truncated, or was minted by a different definition.
GateInvalidCooldownDuration= 1701A Cooldown gate was given a duration string that is not a well-formed positive duration.
PaginationTooManyControls= 1802A control row was assembled with more than the five buttons Discord allows.
PaginationDuplicateControls= 1804A control row repeats the same control, which would collide the custom_ids.
PluginInvalidLifecycleTimeout= 2003A plugin declared a lifecycle timeout that is not a positive, finite number of milliseconds.
PluginMongooseServiceDecoratorMissing= 2101Mongoose service class is missing the @RegisterMongooseService decorator.
PluginMongooseServicesNotReady= 2104Mongoose services was accessed before the plugin finished initializing.
PluginMongooseModelCreationFailed= 2105Mongoose rejected the model, usually a duplicate model name or an absent schema.
PluginMongooseModelNameMissing= 2106A mongoose service was registered with an empty model name override.
PluginKyselyServiceDecoratorMissing= 2201Kysely service class is missing the @RegisterKyselyService decorator.
PluginKyselyServicesNotReady= 2210Kysely services was accessed before the plugin finished initializing.
CliCodegenDuplicateContextMenu= 3116Two context-menu commands of the same kind share a name during codegen.
CliCleanAppFetchFailed= 3117Could not resolve the application from the bot token during commands --clean.
CliCleanPurgeAllGuilds= 3119commands --clean combined --purge with --all-guilds, which would wipe every guild.
CliCancelled= 3120An interactive prompt was cancelled (Ctrl-C), so the command aborts without changes.
CliCleanLargeBotUnconfirmed= 3121commands --clean --all-guilds matched more guilds than the safety threshold without --yes.
CliCleanApplyNeedsYes= 3122commands --clean --apply ran in a non-interactive environment without --yes, where it cannot prompt.
CliCodegenCommandConstructorThrew= 3127A class carrying @RegisterCommand threw while codegen constructed it.