Skip to content
Enumerrorsv0.13.0

SeedcordErrorCode

All Seedcord error codes.

enum SeedcordErrorCode

Members

ConfigEmojiUnresolved
= 1001

One or more configured emojis could not be resolved at startup.

ConfigWebhookUrlInvalid
= 1002

A webhook reporter's env var is set but fails webhook URL validation.

ConfigWebhookNotFound
= 1003

A configured webhook does not exist on Discord (deleted, or a wrong id or token).

ConfigManifestNotGenerated
= 1004

The generated route manifest was imported before seedcord build generated it.

ConfigMissingEnv
= 1005

A required environment variable is not present.

ConfigInvalidEnv
= 1006

An environment variable is present and fails validation.

MissingGuildsIntent
= 1007

A command usable in a guild is registered without the Guilds intent that caches guilds.

UnsupportedRuntimeVersion
= 1008

The running Node or Bun version is below the range seedcord declares for it in engines.

ConfigTokenUnreadable
= 1009

DISCORD_BOT_TOKEN passed its shape check and carries no readable application id.

ConfigEdgeRestSweeper
= 1010

An edge config sets a REST sweeper interval.

LifecycleAddAfterCompletion
= 1101

Attempted to add lifecycle tasks after startup already completed.

LifecycleAddDuringRun
= 1102

Attempted to add lifecycle tasks while startup is still running.

LifecycleRemoveDuringRun
= 1103

Attempted to remove lifecycle tasks while startup is still running.

LifecycleUnknownPhase
= 1104

Provided lifecycle phase identifier is not recognized.

LifecyclePhaseFailures
= 1105

Startup phase completed with one or more task failures.

LifecycleTaskTimeout
= 1106

A lifecycle task exceeded its configured timeout.

LifecycleRestartAfterFailure
= 1107

A host whose startup failed was started again.

LifecycleInvalidShutdownDeadline
= 1108

The configured shutdown deadline is zero, negative, or not finite.

CoreSingletonViolation
= 1201

Multiple Seedcord instances were created simultaneously.

CorePluginAfterInit
= 1202

Plugins cannot be mutated after the core has finished initializing.

CorePluginKeyExists
= 1203

A plugin tried to register with a key that already exists.

CoreBotRoleMissing
= 1204

Bot role lookup failed within the provided guild.

CoreControllerPathMissing
= 1205

A bot controller was constructed without its required handlers directory.

CoreDirectoryImportFailed
= 1206

A file in a scanned directory threw while being imported.

CoreDirectoryUnreadable
= 1207

A scanned directory could not be read.

CorePluginReservedChannel
= 1208

A plugin was attached under a key the framework logs on.

CoreApplicationUnavailable
= 1209

The application id was read before startup resolved it.

CoreAccessorUnresolved
= 1210

A generated accessor was read before startup resolved its values.

CoreLifecycleUnavailable
= 1211

A startup or shutdown task was added to a core built by createSeedcord.

CoreBusEmitUnavailable
= 1212

emit was called on the bus. It reaches listeners and skips every subscriber.

CoreCommandGuildsEmpty
= 1213

A command decorator passed 'config' while commands.guilds is empty.

CoreCommandGuildDeployFailed
= 1214

Discord refused the command deploy for one guild.

CorePluginGroupTaken
= 1215

A plugin was attached under a group name the bot already uses.

CorePluginKeyHoldsGroup
= 1216

A plugin was attached at a name that holds a group of plugins.

CorePluginKeyMalformed
= 1217

A plugin key is empty, has an empty part, or carries more than one dot.

CorePluginFromOtherCore
= 1218

An attached plugin doesn't extend the Plugin class of the bot's @seedcord/core.

DecoratorCommandAlreadyRegistered
= 1301

A command decorator attempted to re-register an existing command scope.

DecoratorCommandGlobalWithGuilds
= 1302

A global command decorator specified guild IDs, which is not allowed.

DecoratorCommandGuildWithoutGuilds
= 1303

A guild command decorator omitted the required guild ID list.

DecoratorInvalidMiddlewarePriority
= 1304

Middleware priority provided by the decorator was not a finite number.

DecoratorWebhookUrlMissing
= 1305

A WebhookLog subclass is missing its @WebhookUrl decorator.

DecoratorEmptyMiddlewareFilter
= 1306

A middleware decorator was given an empty filter array.

InteractionDuplicateRoute
= 1401

Two interaction handlers registered the same route within a scope.

DuplicateMiddleware
= 1402

Two different middleware classes share a class name.

ManifestEntryWrongClass
= 1403

A manifest array lists a class that does not extend the base for that array.

ManifestEntryNoRoutes
= 1404

A manifest array lists a class whose decorator is missing. Nothing registered.

ReplyIllegalAckState
= 1501

A reply method was called in an ack state where it is illegal.

ReplyComponentSerialization
= 1502

A reply component failed to serialize to raw API data.

ReplyForeignEditTarget
= 1503

edit() was passed a message the interaction did not send.

ReplyUpdateWithoutSource
= 1504

update() or deferUpdate() was called on a modal with no source message.

ReplyCallbackMissingMessage
= 1505

A withResponse interaction callback returned no created message.

CustomIdInvalidPrefix
= 1601

A customId definition prefix contains a reserved character (a colon or a control char).

CustomIdReservedFieldName
= 1602

A customId field name is integer-like, which JS would silently reorder.

CustomIdEmptyChoices
= 1603

A oneOf() or someOf() field was declared with no choices.

CustomIdInvalidBounds
= 1604

An int() field was declared with min greater than max.

CustomIdValueRejected
= 1605

A field rejected the value given to encode().

CustomIdWireTooLong
= 1606

An encoded customId exceeds Discord's 100-character limit.

CustomIdDuplicateFieldName
= 1607

A field name is declared more than once in the same customId chain.

CustomIdHandlerRouteMissing
= 1608

A component handler is missing the route decorator that matches its base.

CustomIdMatchArmMissing
= 1609

match() received a decoded route with no matching arm.

SlashMatchArmMissing
= 1610

A slash handler's match() has no arm for the command route that fired.

AutocompleteMatchArmMissing
= 1611

An autocomplete handler's match() has no arm for the focused field that fired.

EventMatchArmMissing
= 1612

An event handler's match() has no arm for the event name that fired.

EventMiddlewareNameUnavailable
= 1613

Event middleware read this.eventName but was constructed without a fired event name.

AutocompleteNoFocusedOption
= 1614

An autocomplete payload carried no focused option.

ContextMenuMatchArmMissing
= 1615

A context menu handler's match() has no arm for the command name that fired.

CustomIdWireStale
= 1620

A customId was minted under an older shape of the same definition.

CustomIdWireInvalid
= 1621

A customId wire is corrupt, truncated, or was minted by a different definition.

DispatchStateMissing
= 1622

dispatch.require() was called for a key nothing wrote on this dispatch.

GateInvalidCooldownDuration
= 1701

A Cooldown gate was given a duration string that is not a well-formed positive duration.

PaginationInvalidPerPage
= 1801

A paginator source was given a perPage that is not a positive integer.

PaginationTooManyControls
= 1802

A control row was assembled with more than the five buttons Discord allows.

PaginationEmptyControls
= 1803

A control row was assembled with no controls.

PaginationDuplicateControls
= 1804

A control row repeats the same control, which would collide the custom_ids.

ColorUnresolvable
= 1901

A color value could not be resolved to a Discord color integer.

ColorOutOfRange
= 1902

A resolved color fell outside Discord's 0x000000 to 0xffffff range.

PluginOptionsRejected
= 2001

A plugin's constructor rejected its options through rejectOptions.

PluginDisposeFailures
= 2002

Two or more plugins threw while disposing.

PluginInvalidLifecycleTimeout
= 2003

A plugin declared a lifecycle timeout that is not a positive, finite number of milliseconds.

PluginMongooseServiceDecoratorMissing
= 2101

Mongoose service class is missing the @RegisterMongooseService decorator.

PluginMongooseConnectionFailed
= 2102

Mongoose client failed to establish a connection.

PluginMongooseDisconnectFailed
= 2103

Mongoose client failed to disconnect cleanly during shutdown.

PluginMongooseServicesNotReady
= 2104

Mongoose services was accessed before the plugin finished initializing.

PluginMongooseModelCreationFailed
= 2105

Mongoose rejected the model, usually a duplicate model name or an absent schema.

PluginMongooseModelNameMissing
= 2106

A mongoose service was registered with an empty model name override.

PluginKyselyServiceDecoratorMissing
= 2201

Kysely service class is missing the @RegisterKyselyService decorator.

PluginKyselyServiceTableMissing
= 2202

Kysely service class is missing its table metadata.

PluginKyselyInvalidStepCount
= 2203

Migration manager received an invalid step count.

PluginKyselyUnknownDirection
= 2204

Migration direction was not recognized.

PluginKyselyUnresolvedMigrationsPath
= 2205

Provided migrations path could not be resolved.

PluginKyselyNoMigrationFiles
= 2206

No migration files were found for execution.

PluginKyselyInvalidMigrationModule
= 2207

A migration module failed to export the expected functions.

PluginKyselyNonErrorFailure
= 2208

An arbitrary (non-Error) failure was reported by a migration.

PluginKyselyDisconnectFailed
= 2209

Postgres pool failed to close cleanly during shutdown.

PluginKyselyServicesNotReady
= 2210

Kysely services was accessed before the plugin finished initializing.

PluginKyselyConnectionFailed
= 2211

Postgres pool failed to establish a connection.

PluginKyselyBootstrapFailed
= 2212

Bootstrapper failed to ensure the target Postgres database exists.

PluginKyselyDuplicateMigrationName
= 2213

Two listed migration files share a name once their extensions are stripped.

CliConfigInvalidExport
= 3101

Config file default export was not an object.

CliConfigMissingInstance
= 3102

Config is missing the required instance string.

CliConfigNotFound
= 3103

Unable to locate a Seedcord config file.

CliEntryNotFound
= 3104

CLI entry file does not exist.

CliTsImportFailed
= 3105

Failed to import a TypeScript entry file.

CliImportFailed
= 3106

Native import and jiti fallback both failed.

CliInstanceInvalid
= 3107

Seedcord instance export is missing a start() method.

CliStartFailed
= 3108

Seedcord instance threw during startup.

CliConfigMissingEntry
= 3109

Config is missing the required entry string.

CliConfigEntryOutsideRoot
= 3110

Entry file must be inside the configured root directory.

CliBuildTsconfigNotFound
= 3111

Unable to locate a TypeScript config file for builds.

CliBuildFailed
= 3112

TypeScript reported diagnostics during emit.

CliBootstrapWriteFailed
= 3113

Unable to write the generated bootstrap file.

CliCodegenDuplicateRoute
= 3114

Two commands resolve to the same slash route during codegen.

CliCodegenCommandsDirUnreadable
= 3115

The commands directory could not be read during codegen.

CliCodegenDuplicateContextMenu
= 3116

Two context-menu commands of the same kind share a name during codegen.

CliCleanAppFetchFailed
= 3117

Could not resolve the application from the bot token during commands --clean.

CliCleanNoGuilds
= 3118

commands --clean ran with neither --guild nor --all-guilds.

CliCleanPurgeAllGuilds
= 3119

commands --clean combined --purge with --all-guilds, which would wipe every guild.

CliCancelled
= 3120

An interactive prompt was cancelled (Ctrl-C), so the command aborts without changes.

CliCleanLargeBotUnconfirmed
= 3121

commands --clean --all-guilds matched more guilds than the safety threshold without --yes.

CliCleanApplyNeedsYes
= 3122

commands --clean --apply ran in a non-interactive environment without --yes, where it cannot prompt.

CliTunnelUrlUnavailable
= 3123

The cloudflared metrics server never reported a quick-tunnel hostname.

CliTunnelNotVerified
= 3124

Discord rejected the tunnel URL as an interactions endpoint.

CliTunnelUnreachable
= 3125

The tunnel URL never answered its health probe.

CliConfigInvalidField
= 3126

A config field is present with the wrong shape.

CliCodegenCommandConstructorThrew
= 3127

A class carrying @RegisterCommand threw while codegen constructed it.

CreateCancelled
= 3201

A create prompt was cancelled (Ctrl-C), and nothing has been written yet.

CreateFlagNotApplicable
= 3202

A flag supplied an answer for a question the earlier answers skip.

CreateInvalidAnswer
= 3203

A flag carried a value its question rejects.

CreateBadUsage
= 3204

The command line did not parse.

CreateTargetNotEmpty
= 3205

The target path already holds something.

CreateStepFailed
= 3206

A command the scaffolder shelled out to exited non-zero.