Enumerrorsv0.15.1SeedcordErrorCodeAll Seedcord error codes. enum SeedcordErrorCodeMembersConfigEmojiUnresolved= 1001Two or more configured emojis failed to resolve at startup. ConfigEmojiInvalid= 1002A configured emoji is neither a name nor a [name, guildId] pair. ConfigEmojiNotFound= 1003The application or guild a configured emoji points at has no emoji with that name. ConfigEmojiSourceUnreadable= 1004Reading the emojis of the application or guild a configured emoji points at failed. ConfigWebhookNotFound= 1005Discord has no webhook at a configured URL, because it was deleted or the id or token is wrong. ConfigMissingEnv= 1006A required environment variable is unset. ConfigInvalidEnv= 1007An environment variable is set to a value seedcord cannot use. MissingGuildsIntent= 1008A command that runs in guilds is registered without the Guilds intent, so discord.js caches no guild. UnsupportedRuntimeVersion= 1009The running Node or Bun is older than the range seedcord declares in engines. ConfigEdgeRestSweeper= 1010An edge config sets a REST sweeper interval. PortInUse= 1011Another process already listens on the port seedcord tries to listen on. LifecycleTaskChangeRejected= 1101A startup task was added or removed while startup ran, or added after it finished. LifecycleUnknownPhase= 1102A lifecycle call got a phase that is not a member of StartupPhase or ShutdownPhase. LifecyclePhaseFailures= 1103One or more tasks failed during a startup phase. LifecycleTaskTimeout= 1104A lifecycle task ran past its timeout. LifecycleRestartAfterFailure= 1105A host whose startup failed was started again. LifecycleInvalidTimeout= 1106A shutdown deadline or a plugin's lifecycle timeout is zero, negative, or not finite. CoreSingletonViolation= 1201A second Seedcord instance was constructed while one already exists. CorePluginAfterInit= 1202A plugin was attached after the bot started. CorePluginKeyExists= 1203A plugin was attached under a key another plugin already uses. CoreBotRoleMissing= 1204The bot's own role is missing from the guild's role cache. CoreControllerPathMissing= 1205A bot controller was constructed without the folder that holds its handlers. CoreImportFailed= 1206seedcord could not import a file in the bot or in the CLI. CorePathUnreadable= 1207A file or folder that seedcord reads could not be read. CorePluginReservedChannel= 1208A plugin was attached under a key that the framework logs on. CoreApplicationUnavailable= 1209The application id was read before startup resolved it. CoreAccessorUnresolved= 1210A generated accessor like Emojis or Commands was read for a key that has no value yet. CoreLifecycleUnavailable= 1211A shutdown task was added on an edge bot. Cloudflare stops an isolate without a shutdown hook. CoreBusEmitUnavailable= 1212emit was called on the bus. It calls the listeners and skips every subscriber. CoreCommandGuildsEmpty= 1213A command registers to the 'config' guilds while commands.guilds is empty. CoreCommandGuildDeployFailed= 1214Discord refused the command deploy for one guild. CorePluginGroupTaken= 1215A plugin was attached under a group name the bot already uses. CorePluginKeyHoldsGroup= 1216A plugin was attached at a name that holds a group of plugins. CorePluginKeyMalformed= 1217A plugin key is empty, has an empty part, or has more than one dot. CorePluginFromOtherCore= 1218An attached plugin extends the Plugin class of a different copy of @seedcord/core. CorePathOutsideRoot= 1219A folder or the build.start file is outside root. CorePluginScopeMismatch= 1220A plugin declares a transport or runtime the bot doesn't use. CoreFetchBeforeStart= 1221A node http bot got a request through fetch before start() was called. CoreEdgeUnbuilt= 1222An edge worker got a POST without the ids that seedcord build writes into it. CoreDirectoryRootUnknown= 1223A relative folder was read in a process that never got the bot's root. CoreCommandGlobalDeployFailed= 1224Discord refused the global command deploy. CoreDirectoryNotBuilt= 1225A built bot read a folder that did not exist under root when seedcord build ran. CoreWebhookUrlInvalid= 1226A webhook sender was constructed with a URL that is not a Discord webhook URL. CoreDiscordReadFailed= 1227Reading from Discord with DISCORD_BOT_TOKEN failed, like the application, its public key, or its commands. CoreDuplicateName= 1228Two routes, commands, migrations, or customId fields have the same name, or two code files build to the same file. CoreVitePluginThrew= 1229A Vite plugin from vitePlugins threw while Vite started or loaded a file, or failed when seedcord called vitePlugins. CoreDirectoryNotListed= 1230readFiles read a folder that files in seedcord.config.ts leaves out. CoreDirectorySkipped= 1231A folder is inside one that seedcord build skips, like a dot-folder, node_modules, outDir or the logs folder. CoreKvKeysUnsupported= 1232collection.entries() ran on a Keyv store in config.kv that can't list its keys. CorePluginKvOutsideAttach= 1233A plugin built with new outside attach() read this.kv. CoreKvDriverFailed= 1234The driver in config.kv threw, or reported a write as failed. CoreBotMemberMissing= 1235The bot's own member is missing from the guild's member cache. CoreBuiltModuleRanDirectly= 1236A module from a build read its path, but the build's index.mjs didn't run first. CoreKvUnserializable= 1237JSON.stringify threw on a record passed to a kv collection's set() or update(), like one with a circular reference. DecoratorCommandAlreadyRegistered= 1301A command class carries @RegisterCommand twice. DecoratorCommandGlobalWithGuilds= 1302@RegisterCommand('global') was given guild ids. DecoratorCommandGuildWithoutGuilds= 1303@RegisterCommand('guild') was given no guild ids. DecoratorInvalidMiddlewarePriority= 1304A middleware decorator sets a priority that is not a finite number. DecoratorWebhookUrlMissing= 1305A WebhookLog subclass is missing its @WebhookUrl decorator. DecoratorEmptyMiddlewareFilter= 1306A 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= 1501A reply method was called in an ack state where Discord rejects it. ReplyComponentSerialization= 1502A reply component threw while seedcord serialized it. ReplyForeignEditTarget= 1503edit() got a message that the interaction did not send. ReplyUpdateWithoutSource= 1504update() or deferUpdate() was called on a modal that has no source message. ReplyCallbackMissingMessage= 1505Discord's response to a withResponse callback has no message in it. CustomIdInvalidPrefix= 1601A customId prefix is empty, or holds a colon or a control character. CustomIdReservedFieldName= 1602A customId field name looks like an integer. JS reorders integer keys. CustomIdEmptyChoices= 1603A oneOf() or someOf() field was declared with no choices. CustomIdInvalidBounds= 1604An int() field was declared with a min greater than its max. CustomIdValueRejected= 1605encode() got a value that doesn't fit its field. CustomIdWireTooLong= 1606An encoded customId is longer than the 100 characters Discord allows. CustomIdHandlerRouteMissing= 1607A component handler is missing the route decorator that matches its base. MatchCaseMissing= 1608A handler's match() doesn't have a case for the current route, field, event, or command. AutocompleteNoFocusedOption= 1610Discord sent an autocomplete payload with no focused option. ModalFieldNotFound= 1611The submitted modal has no field with the requested custom id. ModalFieldWrongKind= 1612A modal field getter was called on a field of another kind. ModalFieldEmpty= 1613A modal field read as required has nothing picked. ModalFieldChannelType= 1614A channel select returned a channel whose type the getSelectedChannels() call excludes. CustomIdWireStale= 1615A customId was encoded under an older shape of the same definition. CustomIdWireInvalid= 1616A customId is corrupt, truncated, or was encoded by a different definition. DispatchStateMissing= 1617dispatch.require() was called for a key that nothing set on this dispatch. GateInvalidCooldownDuration= 1701A Cooldown gate got a duration that doesn't parse, or one of zero or less. PaginationInvalidPerPage= 1801A paginator got a perPage that is not a positive integer. PaginationControlCount= 1802A control row has no controls, or more than the five buttons Discord allows. PaginationDuplicateControls= 1803A control row lists the same control twice. Its two buttons would share a custom_id. ColorUnresolvable= 1901A color value doesn't resolve to a Discord color integer. ColorOutOfRange= 1902A resolved color is outside Discord's range of 0x000000 to 0xffffff. UtilTableOptionInvalid= 1951renderTable got a maxWidth or padding outside the values it accepts. UtilUnhandledUnionMember= 1952assertNever ran with a value that its types ruled out. LoggerFileNameHasFolder= 1971WinstonFileSink got a filename with a folder in it. File logs always go in the logs folder. PluginOptionsRejected= 2001A plugin's constructor called rejectOptions on the options it got. PluginDisposeFailures= 2002Two or more plugins threw while disposing. PluginServiceDecoratorMissing= 2003A plugin service class is missing the decorator that registers it. PluginServicesNotReady= 2004A plugin's services was read before the plugin finished init(). PluginConnectionFailed= 2005A plugin could not connect to the service it wraps. PluginDisconnectFailed= 2006A plugin could not close its connection cleanly during shutdown. PluginMongooseModelCreationFailed= 2101Mongoose threw while building a model, usually for a duplicate model name or a missing schema. PluginMongooseModelNameMissing= 2102A mongoose service was registered with an empty model name. PluginKyselyServiceTableMissing= 2201A kysely service class has no table. PluginKyselyInvalidStepCount= 2202A migration run got a step count that is not a non-negative integer. PluginKyselyUnknownDirection= 2203A migration run got a direction other than up or down. PluginKyselyInvalidMigrationModule= 2204A file in the migrations folder has no up function. PluginKyselyNonErrorFailure= 2205A migration failed with a thrown value that is not an Error. PluginKyselyBootstrapFailed= 2206Creating the target Postgres database failed. CliCancelled= 3001Someone pressed Ctrl-C at a prompt in seedcord or create-seedcord. CliConfigInvalidExport= 3101The seedcord config file's default export is not an object. CliConfigNotFound= 3102No seedcord config file exists in the folder the CLI searched. CliFileNotFound= 3103The file that instance or build.start in the seedcord config points at does not exist. CliInstanceInvalid= 3104The instance file's default export is not a constructed Seedcord. CliStartFailed= 3105The bot threw during startup. CliTsconfigNotFound= 3106build.tsconfig points at a missing file, or it is unset and the config's folder has no tsconfig.json. CliBuildFailed= 3107seedcord build found type errors. CliNoScopeGiven= 3108commands clean or commands purge ran without a flag that picks where it deletes. CliTunnelUrlUnavailable= 3109cloudflared never reported a quick tunnel hostname. CliTunnelNotVerified= 3110Discord rejected the tunnel URL as an interactions endpoint. CliTunnelUnreachable= 3111The tunnel URL never answered its health probe. CliConfigInvalidField= 3112A field in the seedcord config is missing or has the wrong shape. CliCommandConstructorThrew= 3113A class carrying @RegisterCommand threw while seedcord constructed it. CliBundleFailed= 3114Vite threw while bundling the bot. CliConfigOutDirDeletesRoot= 3115build.outDir is root or a folder that contains it. CliDependencyMissing= 3116The project is missing a dev dependency the CLI runs, like typescript or @cloudflare/vite-plugin. CliBuildOutDirNotEmpty= 3117build.outDir already has other files in it. CliProblems= 3118One CLI step found two or more problems. Each one is in the error's errors. CliCodegenOutOfDate= 3119seedcord codegen --check found the committed augmentations out of date. CliPathHasHash= 3120A file or folder in the project has a # in its path. CliEdgeWithoutWorkerdCondition= 3121An edge bot's tsconfig is missing the workerd condition. CliWorkerdConditionWithoutCloudflareConfig= 3122A bot with no cloudflare.config.ts sets the workerd condition in its tsconfig. CliConfigFileUnreadable= 3123TypeScript could not read the project's tsconfig, or Cloudflare's config loader could not read cloudflare.config.ts. CliTypescriptNotStarted= 3124The CLI could not start the TypeScript compiler. CliConfigFieldUnused= 3125A config file sets a field this bot can't set, like entrypoint in an edge bot's cloudflare.config.ts. CliEdgeCompatDateTooOld= 3126An edge bot's compatibilityDate is older than Cloudflare's Node compat default, and no flag turns it on. CliEdgeNodeCompatOff= 3127An edge bot sets no_nodejs_compat. CliEdgeBootFailed= 3128The build could not start the edge worker in workerd. CliEdgeRootHoldsConfig= 3129An edge bot's root holds its seedcord config. CliEdgeCommandsNotDeployed= 3130An edge build found commands in code that have no deployed id on Discord. CliDevRuntimeNotRunning= 3131Something called the dev runtime before start() finished or after stop(). This is a bug in seedcord. CliDeployNoCommandsFolder= 3132seedcord commands deploy ran on a bot whose commands.path is null. CliDeployNeedsYes= 3133seedcord commands deploy ran without --yes where it cannot ask first. CliCommandNotACommand= 3134A class carrying @RegisterCommand builds a component that is not a command or a context menu. CliCommandsNotDeleted= 3135seedcord commands clean or purge could not delete some of the commands it picked. CliEdgeOnBun= 3136The CLI ran on Bun for an edge bot. CliEdgeNoWorker= 3137An edge bot's cloudflare.config.ts sets no worker. CliNotProjectInstall= 3138The running seedcord is a different install from the project's own. CliViteEnvironmentMissing= 3139Vite's environments leave out the one seedcord runs the bot in. CliListedFolderUnusable= 3140A folder that files in seedcord.config.ts lists is missing or is a file. CliDevAlreadyRunning= 3141Another seedcord dev already runs a bot on the same Discord application. CliDevLockFolderNotOwned= 3142The folder that holds the dev session locks belongs to another user. CliPluginCodegenThrew= 3143A plugin's codegen() threw. CliPluginCodegenNoId= 3144A plugin class with a codegen() is missing its static readonly id. CliPluginCodegenValue= 3145A plugin's codegen() returned a value that codegen can't write as a type. CliPluginCodegenConflict= 3146Two attachments of one plugin class returned different values at one key from codegen(). CliAskBadQuestion= 3147The text passed to seedcord ask isn't a question the guide search accepts. CliAskHasToWait= 3148The guide search refused seedcord ask until a search limit resets. CliAskFailed= 3149The guide search failed for a reason other than a search limit. CreateFlagNotApplicable= 3201A flag answers a question that the earlier answers skip. CreateInvalidAnswer= 3202A flag has a value its question rejects. CreateBadUsage= 3203The command line did not parse. CreateTargetNotEmpty= 3204The target path already has files in it. CreateStepFailed= 3205A command that create-seedcord ran exited non-zero. MakeInvalidName= 3301The name given to seedcord make can't become a file name. MakeImportOfUnmatched= 3302A template calls importOf on a folder that doesn't hold exactly one template file. MakeValueUsedTwoWays= 3303A template uses one value as two of text, a list, and an entry with fields. MakeTemplateFailed= 3304Handlebars could not parse or render a template file. MakeLookupDynamicKey= 3305A template calls lookup with a key that isn't quoted text. MakeNeedsTerminal= 3306seedcord make ran without a terminal to ask its questions in. MakeNoTemplates= 3307seedcord make found no templates in the bot or its plugins. MakePathTaken= 3308A path seedcord make would write to is taken, by a file on disk or by another file of the same template. MakePartialCallsItself= 3309A template's partial calls itself, so seedcord make can't tell how many levels to ask for.
ConfigEmojiNotFound= 1003The application or guild a configured emoji points at has no emoji with that name.
ConfigEmojiSourceUnreadable= 1004Reading the emojis of the application or guild a configured emoji points at failed.
ConfigWebhookNotFound= 1005Discord has no webhook at a configured URL, because it was deleted or the id or token is wrong.
MissingGuildsIntent= 1008A command that runs in guilds is registered without the Guilds intent, so discord.js caches no guild.
UnsupportedRuntimeVersion= 1009The running Node or Bun is older than the range seedcord declares in engines.
LifecycleTaskChangeRejected= 1101A startup task was added or removed while startup ran, or added after it finished.
LifecycleUnknownPhase= 1102A lifecycle call got a phase that is not a member of StartupPhase or ShutdownPhase.
LifecycleInvalidTimeout= 1106A shutdown deadline or a plugin's lifecycle timeout is zero, negative, or not finite.
CoreControllerPathMissing= 1205A bot controller was constructed without the folder that holds its handlers.
CoreAccessorUnresolved= 1210A generated accessor like Emojis or Commands was read for a key that has no value yet.
CoreLifecycleUnavailable= 1211A shutdown task was added on an edge bot. Cloudflare stops an isolate without a shutdown hook.
CoreBusEmitUnavailable= 1212emit was called on the bus. It calls the listeners and skips every subscriber.
CoreCommandGuildsEmpty= 1213A command registers to the 'config' guilds while commands.guilds is empty.
CorePluginFromOtherCore= 1218An attached plugin extends the Plugin class of a different copy of @seedcord/core.
CoreDirectoryNotBuilt= 1225A built bot read a folder that did not exist under root when seedcord build ran.
CoreWebhookUrlInvalid= 1226A webhook sender was constructed with a URL that is not a Discord webhook URL.
CoreDiscordReadFailed= 1227Reading from Discord with DISCORD_BOT_TOKEN failed, like the application, its public key, or its commands.
CoreDuplicateName= 1228Two routes, commands, migrations, or customId fields have the same name, or two code files build to the same file.
CoreVitePluginThrew= 1229A Vite plugin from vitePlugins threw while Vite started or loaded a file, or failed when seedcord called vitePlugins.
CoreDirectorySkipped= 1231A folder is inside one that seedcord build skips, like a dot-folder, node_modules, outDir or the logs folder.
CoreKvKeysUnsupported= 1232collection.entries() ran on a Keyv store in config.kv that can't list its keys.
CoreBuiltModuleRanDirectly= 1236A module from a build read its path, but the build's index.mjs didn't run first.
CoreKvUnserializable= 1237JSON.stringify threw on a record passed to a kv collection's set() or update(), like one with a circular reference.
DecoratorInvalidMiddlewarePriority= 1304A middleware decorator sets a priority that is not a finite number.
DecoratorDuplicateKey= 1307@Subscribe, @RegisterEvent, or a component route decorator lists the same key or customId prefix twice.
ReplyUpdateWithoutSource= 1504update() or deferUpdate() was called on a modal that has no source message.
CustomIdReservedFieldName= 1602A customId field name looks like an integer. JS reorders integer keys.
CustomIdHandlerRouteMissing= 1607A component handler is missing the route decorator that matches its base.
MatchCaseMissing= 1608A handler's match() doesn't have a case for the current route, field, event, or command.
ModalFieldChannelType= 1614A channel select returned a channel whose type the getSelectedChannels() call excludes.
GateInvalidCooldownDuration= 1701A Cooldown gate got a duration that doesn't parse, or one of zero or less.
PaginationControlCount= 1802A control row has no controls, or more than the five buttons Discord allows.
PaginationDuplicateControls= 1803A control row lists the same control twice. Its two buttons would share a custom_id.
LoggerFileNameHasFolder= 1971WinstonFileSink got a filename with a folder in it. File logs always go in the logs folder.
PluginServiceDecoratorMissing= 2003A plugin service class is missing the decorator that registers it.
PluginMongooseModelCreationFailed= 2101Mongoose threw while building a model, usually for a duplicate model name or a missing schema.
PluginKyselyInvalidStepCount= 2202A migration run got a step count that is not a non-negative integer.
CliFileNotFound= 3103The file that instance or build.start in the seedcord config points at does not exist.
CliTsconfigNotFound= 3106build.tsconfig points at a missing file, or it is unset and the config's folder has no tsconfig.json.
CliNoScopeGiven= 3108commands clean or commands purge ran without a flag that picks where it deletes.
CliCommandConstructorThrew= 3113A class carrying @RegisterCommand threw while seedcord constructed it.
CliDependencyMissing= 3116The project is missing a dev dependency the CLI runs, like typescript or @cloudflare/vite-plugin.
CliWorkerdConditionWithoutCloudflareConfig= 3122A bot with no cloudflare.config.ts sets the workerd condition in its tsconfig.
CliConfigFileUnreadable= 3123TypeScript could not read the project's tsconfig, or Cloudflare's config loader could not read cloudflare.config.ts.
CliConfigFieldUnused= 3125A config file sets a field this bot can't set, like entrypoint in an edge bot's cloudflare.config.ts.
CliEdgeCompatDateTooOld= 3126An edge bot's compatibilityDate is older than Cloudflare's Node compat default, and no flag turns it on.
CliEdgeCommandsNotDeployed= 3130An edge build found commands in code that have no deployed id on Discord.
CliDevRuntimeNotRunning= 3131Something called the dev runtime before start() finished or after stop(). This is a bug in seedcord.
CliCommandNotACommand= 3134A class carrying @RegisterCommand builds a component that is not a command or a context menu.
CliCommandsNotDeleted= 3135seedcord commands clean or purge could not delete some of the commands it picked.
CliListedFolderUnusable= 3140A folder that files in seedcord.config.ts lists is missing or is a file.
CliPluginCodegenConflict= 3146Two attachments of one plugin class returned different values at one key from codegen().
MakeImportOfUnmatched= 3302A template calls importOf on a folder that doesn't hold exactly one template file.
MakeValueUsedTwoWays= 3303A template uses one value as two of text, a list, and an entry with fields.
MakePathTaken= 3308A path seedcord make would write to is taken, by a file on disk or by another file of the same template.
MakePartialCallsItself= 3309A template's partial calls itself, so seedcord make can't tell how many levels to ask for.