Skip to main content

Arcscord error codes

ArcscordError.code is a stable public identifier. Adding a code is backward-compatible; removing or renaming one is a breaking change.

CodeMeaningImportant metadata
CLIENT_READY_TIMEOUTClient readiness timed outtimeoutMs
APPLICATION_UNAVAILABLEDiscord application data was unavailableoperation
COMMAND_VALIDATION_FAILEDA command definition is invalidrule, path, group
COMMAND_REGISTRATION_FAILEDDiscord command synchronization failedscope, guildId, operation
COMMAND_RESOLUTION_FAILEDAn interaction could not be resolved to a command surfacecommandName, reason
COMPONENT_ROUTE_INVALIDA component route is malformedroute, reason
COMPONENT_ROUTE_DUPLICATETwo components use the same canonical routeroute, canonicalRoute
COMPONENT_CUSTOM_ID_TOO_LONGA generated custom ID exceeds Discord's limitroute, length, maximum
EVENT_HANDLER_DUPLICATETwo event handlers use the same namehandlerName, eventName
EVENT_INTENT_MISSINGRequired gateway intents are missingmissingIntents, presentIntents
INTERACTION_OPERATION_FAILEDReply, edit, defer, modal, or autocomplete response failedoperation
COMMAND_NOT_FOUNDNo loaded command matched an interactiondispatch context
COMMAND_OPTION_PARSING_FAILEDSlash-command option parsing failedparsing context
COMMAND_CONTEXT_CREATION_FAILEDThe interaction did not match the command surfacedispatch context
COMMAND_DEFER_FAILEDCommand pre-reply faileddispatch context
COMPONENT_NOT_FOUNDNo component route matchedroute context
COMPONENT_MULTIPLE_MATCHESMultiple component routes matchedroute context
COMPONENT_CONTEXT_CREATION_FAILEDComponent context or modal parsing faileddispatch context
COMPONENT_TYPED_SELECT_INVALID_VALUESTyped select values violated their declarationselected/allowed values
COMPONENT_DEFER_FAILEDComponent pre-reply faileddispatch context
AUTOCOMPLETE_EXECUTION_FAILEDAutocomplete dispatch or response failedcommand context