Skip to content
Enumerrorsv0.15.1

SeedcordErrorCode

All Seedcord error codes.

enum SeedcordErrorCode

Members

ConfigEmojiUnresolved
= 1001

Two or more configured emojis failed to resolve at startup.

ConfigEmojiInvalid
= 1002

A configured emoji is neither a name nor a [name, guildId] pair.

ConfigEmojiNotFound
= 1003

The application or guild a configured emoji points at has no emoji with that name.

ConfigEmojiSourceUnreadable
= 1004

Reading the emojis of the application or guild a configured emoji points at failed.

ConfigWebhookNotFound
= 1005

Discord has no webhook at a configured URL, because it was deleted or the id or token is wrong.

ConfigMissingEnv
= 1006

A required environment variable is unset.

ConfigInvalidEnv
= 1007

An environment variable is set to a value seedcord cannot use.

MissingGuildsIntent
= 1008

A command that runs in guilds is registered without the Guilds intent, so discord.js caches no guild.

UnsupportedRuntimeVersion
= 1009

The running Node or Bun is older than the range seedcord declares in engines.

ConfigEdgeRestSweeper
= 1010

An edge config sets a REST sweeper interval.

PortInUse
= 1011

Another process already listens on the port seedcord tries to listen on.

LifecycleTaskChangeRejected
= 1101

A startup task was added or removed while startup ran, or added after it finished.

LifecycleUnknownPhase
= 1102

A lifecycle call got a phase that is not a member of StartupPhase or ShutdownPhase.

LifecyclePhaseFailures
= 1103

One or more tasks failed during a startup phase.

LifecycleTaskTimeout
= 1104

A lifecycle task ran past its timeout.

LifecycleRestartAfterFailure
= 1105

A host whose startup failed was started again.

LifecycleInvalidTimeout
= 1106

A shutdown deadline or a plugin's lifecycle timeout is zero, negative, or not finite.

CoreSingletonViolation
= 1201

A second Seedcord instance was constructed while one already exists.

CorePluginAfterInit
= 1202

A plugin was attached after the bot started.

CorePluginKeyExists
= 1203

A plugin was attached under a key another plugin already uses.

CoreBotRoleMissing
= 1204

The bot's own role is missing from the guild's role cache.

CoreControllerPathMissing
= 1205

A bot controller was constructed without the folder that holds its handlers.

CoreImportFailed
= 1206

seedcord could not import a file in the bot or in the CLI.

CorePathUnreadable
= 1207

A file or folder that seedcord reads could not be read.

CorePluginReservedChannel
= 1208

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

CoreApplicationUnavailable
= 1209

The application id was read before startup resolved it.

CoreAccessorUnresolved
= 1210

A generated accessor like Emojis or Commands was read for a key that has no value yet.

CoreLifecycleUnavailable
= 1211

A shutdown task was added on an edge bot. Cloudflare stops an isolate without a shutdown hook.

CoreBusEmitUnavailable
= 1212

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

CoreCommandGuildsEmpty
= 1213

A command registers to the 'config' guilds 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 has more than one dot.

CorePluginFromOtherCore
= 1218

An attached plugin extends the Plugin class of a different copy of @seedcord/core.

CorePathOutsideRoot
= 1219

A folder or the build.start file is outside root.

CorePluginScopeMismatch
= 1220

A plugin declares a transport or runtime the bot doesn't use.

CoreFetchBeforeStart
= 1221

A node http bot got a request through fetch before start() was called.

CoreEdgeUnbuilt
= 1222

An edge worker got a POST without the ids that seedcord build writes into it.

CoreDirectoryRootUnknown
= 1223

A relative folder was read in a process that never got the bot's root.

CoreCommandGlobalDeployFailed
= 1224

Discord refused the global command deploy.

CoreDirectoryNotBuilt
= 1225

A built bot read a folder that did not exist under root when seedcord build ran.

CoreWebhookUrlInvalid
= 1226

A webhook sender was constructed with a URL that is not a Discord webhook URL.

CoreDiscordReadFailed
= 1227

Reading from Discord with DISCORD_BOT_TOKEN failed, like the application, its public key, or its commands.

CoreDuplicateName
= 1228

Two routes, commands, migrations, or customId fields have the same name, or two code files build to the same file.

CoreVitePluginThrew
= 1229

A Vite plugin from vitePlugins threw while Vite started or loaded a file, or failed when seedcord called vitePlugins.

CoreDirectoryNotListed
= 1230

readFiles read a folder that files in seedcord.config.ts leaves out.

CoreDirectorySkipped
= 1231

A folder is inside one that seedcord build skips, like a dot-folder, node_modules, outDir or the logs folder.

CoreKvKeysUnsupported
= 1232

collection.entries() ran on a Keyv store in config.kv that can't list its keys.

CorePluginKvOutsideAttach
= 1233

A plugin built with new outside attach() read this.kv.

CoreKvDriverFailed
= 1234

The driver in config.kv threw, or reported a write as failed.

CoreBotMemberMissing
= 1235

The bot's own member is missing from the guild's member cache.

CoreBuiltModuleRanDirectly
= 1236

A module from a build read its path, but the build's index.mjs didn't run first.

CoreKvUnserializable
= 1237

JSON.stringify threw on a record passed to a kv collection's set() or update(), like one with a circular reference.

DecoratorCommandAlreadyRegistered
= 1301

A command class carries @RegisterCommand twice.

DecoratorCommandGlobalWithGuilds
= 1302

@RegisterCommand('global') was given guild ids.

DecoratorCommandGuildWithoutGuilds
= 1303

@RegisterCommand('guild') was given no guild ids.

DecoratorInvalidMiddlewarePriority
= 1304

A middleware decorator sets a priority that is not a finite number.

DecoratorWebhookUrlMissing
= 1305

A WebhookLog subclass is missing its @WebhookUrl decorator.

DecoratorEmptyMiddlewareFilter
= 1306

A middleware decorator got an empty filter array.

DecoratorDuplicateKey
= 1307

@Subscribe, @RegisterEvent, or a component route decorator lists the same key or customId prefix twice.

ReplyIllegalAckState
= 1501

A reply method was called in an ack state where Discord rejects it.

ReplyComponentSerialization
= 1502

A reply component threw while seedcord serialized it.

ReplyForeignEditTarget
= 1503

edit() got a message that the interaction did not send.

ReplyUpdateWithoutSource
= 1504

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

ReplyCallbackMissingMessage
= 1505

Discord's response to a withResponse callback has no message in it.

CustomIdInvalidPrefix
= 1601

A customId prefix is empty, or holds a colon or a control character.

CustomIdReservedFieldName
= 1602

A customId field name looks like an integer. JS reorders integer keys.

CustomIdEmptyChoices
= 1603

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

CustomIdInvalidBounds
= 1604

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

CustomIdValueRejected
= 1605

encode() got a value that doesn't fit its field.

CustomIdWireTooLong
= 1606

An encoded customId is longer than the 100 characters Discord allows.

CustomIdHandlerRouteMissing
= 1607

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

MatchCaseMissing
= 1608

A handler's match() doesn't have a case for the current route, field, event, or command.

AutocompleteNoFocusedOption
= 1610

Discord sent an autocomplete payload with no focused option.

CustomIdWireStale
= 1615

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

CustomIdWireInvalid
= 1616

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

DispatchStateMissing
= 1617

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

GateInvalidCooldownDuration
= 1701

A Cooldown gate got a duration that doesn't parse, or one of zero or less.

PaginationInvalidPerPage
= 1801

A paginator got a perPage that is not a positive integer.

PaginationControlCount
= 1802

A control row has no controls, or more than the five buttons Discord allows.

PaginationDuplicateControls
= 1803

A control row lists the same control twice. Its two buttons would share a custom_id.

ColorUnresolvable
= 1901

A color value doesn't resolve to a Discord color integer.

ColorOutOfRange
= 1902

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

UtilTableOptionInvalid
= 1951

renderTable got a maxWidth or padding outside the values it accepts.

UtilUnhandledUnionMember
= 1952

assertNever ran with a value that its types ruled out.

LoggerFileNameHasFolder
= 1971

WinstonFileSink got a filename with a folder in it. File logs always go in the logs folder.

PluginOptionsRejected
= 2001

A plugin's constructor called rejectOptions on the options it got.

PluginDisposeFailures
= 2002

Two or more plugins threw while disposing.

PluginServiceDecoratorMissing
= 2003

A plugin service class is missing the decorator that registers it.

PluginServicesNotReady
= 2004

A plugin's services was read before the plugin finished init().

PluginConnectionFailed
= 2005

A plugin could not connect to the service it wraps.

PluginDisconnectFailed
= 2006

A plugin could not close its connection cleanly during shutdown.

PluginMongooseModelCreationFailed
= 2101

Mongoose threw while building a model, usually for a duplicate model name or a missing schema.

PluginMongooseModelNameMissing
= 2102

A mongoose service was registered with an empty model name.

PluginKyselyServiceTableMissing
= 2201

A kysely service class has no table.

PluginKyselyInvalidStepCount
= 2202

A migration run got a step count that is not a non-negative integer.

PluginKyselyUnknownDirection
= 2203

A migration run got a direction other than up or down.

PluginKyselyInvalidMigrationModule
= 2204

A file in the migrations folder has no up function.

PluginKyselyNonErrorFailure
= 2205

A migration failed with a thrown value that is not an Error.

PluginKyselyBootstrapFailed
= 2206

Creating the target Postgres database failed.

CliCancelled
= 3001

Someone pressed Ctrl-C at a prompt in seedcord or create-seedcord.

CliConfigInvalidExport
= 3101

The seedcord config file's default export is not an object.

CliConfigNotFound
= 3102

No seedcord config file exists in the folder the CLI searched.

CliFileNotFound
= 3103

The file that instance or build.start in the seedcord config points at does not exist.

CliInstanceInvalid
= 3104

The instance file's default export is not a constructed Seedcord.

CliStartFailed
= 3105

The bot threw during startup.

CliTsconfigNotFound
= 3106

build.tsconfig points at a missing file, or it is unset and the config's folder has no tsconfig.json.

CliBuildFailed
= 3107

seedcord build found type errors.

CliNoScopeGiven
= 3108

commands clean or commands purge ran without a flag that picks where it deletes.

CliTunnelUrlUnavailable
= 3109

cloudflared never reported a quick tunnel hostname.

CliTunnelNotVerified
= 3110

Discord rejected the tunnel URL as an interactions endpoint.

CliTunnelUnreachable
= 3111

The tunnel URL never answered its health probe.

CliConfigInvalidField
= 3112

A field in the seedcord config is missing or has the wrong shape.

CliCommandConstructorThrew
= 3113

A class carrying @RegisterCommand threw while seedcord constructed it.

CliBundleFailed
= 3114

Vite threw while bundling the bot.

CliConfigOutDirDeletesRoot
= 3115

build.outDir is root or a folder that contains it.

CliDependencyMissing
= 3116

The project is missing a dev dependency the CLI runs, like typescript or @cloudflare/vite-plugin.

CliBuildOutDirNotEmpty
= 3117

build.outDir already has other files in it.

CliProblems
= 3118

One CLI step found two or more problems. Each one is in the error's errors.

CliCodegenOutOfDate
= 3119

seedcord codegen --check found the committed augmentations out of date.

CliPathHasHash
= 3120

A file or folder in the project has a # in its path.

CliEdgeWithoutWorkerdCondition
= 3121

An edge bot's tsconfig is missing the workerd condition.

CliWorkerdConditionWithoutCloudflareConfig
= 3122

A bot with no cloudflare.config.ts sets the workerd condition in its tsconfig.

CliConfigFileUnreadable
= 3123

TypeScript could not read the project's tsconfig, or Cloudflare's config loader could not read cloudflare.config.ts.

CliTypescriptNotStarted
= 3124

The CLI could not start the TypeScript compiler.

CliConfigFieldUnused
= 3125

A config file sets a field this bot can't set, like entrypoint in an edge bot's cloudflare.config.ts.

CliEdgeCompatDateTooOld
= 3126

An edge bot's compatibilityDate is older than Cloudflare's Node compat default, and no flag turns it on.

CliEdgeNodeCompatOff
= 3127

An edge bot sets no_nodejs_compat.

CliEdgeBootFailed
= 3128

The build could not start the edge worker in workerd.

CliEdgeRootHoldsConfig
= 3129

An edge bot's root holds its seedcord config.

CliEdgeCommandsNotDeployed
= 3130

An edge build found commands in code that have no deployed id on Discord.

CliDevRuntimeNotRunning
= 3131

Something called the dev runtime before start() finished or after stop(). This is a bug in seedcord.

CliDeployNoCommandsFolder
= 3132

seedcord commands deploy ran on a bot whose commands.path is null.

CliDeployNeedsYes
= 3133

seedcord commands deploy ran without --yes where it cannot ask first.

CliCommandNotACommand
= 3134

A class carrying @RegisterCommand builds a component that is not a command or a context menu.

CliCommandsNotDeleted
= 3135

seedcord commands clean or purge could not delete some of the commands it picked.

CliEdgeOnBun
= 3136

The CLI ran on Bun for an edge bot.

CliEdgeNoWorker
= 3137

An edge bot's cloudflare.config.ts sets no worker.

CliNotProjectInstall
= 3138

The running seedcord is a different install from the project's own.

CliViteEnvironmentMissing
= 3139

Vite's environments leave out the one seedcord runs the bot in.

CliListedFolderUnusable
= 3140

A folder that files in seedcord.config.ts lists is missing or is a file.

CliDevAlreadyRunning
= 3141

Another seedcord dev already runs a bot on the same Discord application.

CliDevLockFolderNotOwned
= 3142

The folder that holds the dev session locks belongs to another user.

CliPluginCodegenThrew
= 3143

A plugin's codegen() threw.

CliPluginCodegenNoId
= 3144

A plugin class with a codegen() is missing its static readonly id.

CliPluginCodegenValue
= 3145

A plugin's codegen() returned a value that codegen can't write as a type.

CliPluginCodegenConflict
= 3146

Two attachments of one plugin class returned different values at one key from codegen().

CliAskBadQuestion
= 3147

The text passed to seedcord ask isn't a question the guide search accepts.

CliAskHasToWait
= 3148

The guide search refused seedcord ask until a search limit resets.

CliAskFailed
= 3149

The guide search failed for a reason other than a search limit.

CreateFlagNotApplicable
= 3201

A flag answers a question that the earlier answers skip.

CreateInvalidAnswer
= 3202

A flag has a value its question rejects.

CreateBadUsage
= 3203

The command line did not parse.

CreateTargetNotEmpty
= 3204

The target path already has files in it.

CreateStepFailed
= 3205

A command that create-seedcord ran exited non-zero.

MakeInvalidName
= 3301

The name given to seedcord make can't become a file name.

MakeImportOfUnmatched
= 3302

A template calls importOf on a folder that doesn't hold exactly one template file.

MakeValueUsedTwoWays
= 3303

A template uses one value as two of text, a list, and an entry with fields.

MakeTemplateFailed
= 3304

Handlebars could not parse or render a template file.

MakeLookupDynamicKey
= 3305

A template calls lookup with a key that isn't quoted text.

MakeNeedsTerminal
= 3306

seedcord make ran without a terminal to ask its questions in.

MakeNoTemplates
= 3307

seedcord make found no templates in the bot or its plugins.

MakePathTaken
= 3308

A path seedcord make would write to is taken, by a file on disk or by another file of the same template.

MakePartialCallsItself
= 3309

A template's partial calls itself, so seedcord make can't tell how many levels to ask for.