From 8a0ade3ac42dece669d91169b7e677a79cddc17f Mon Sep 17 00:00:00 2001 From: Marius Begby Date: Thu, 31 Aug 2023 21:04:31 +0200 Subject: [PATCH] fix: fix "Unknown interaction" error not being handled due to uppercase I --- src/handlers/interactionErrorHandler.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/handlers/interactionErrorHandler.ts b/src/handlers/interactionErrorHandler.ts index c141ecd..852e2d6 100644 --- a/src/handlers/interactionErrorHandler.ts +++ b/src/handlers/interactionErrorHandler.ts @@ -72,12 +72,15 @@ export const handleError = async ( return; } - if (error.message === 'Unknown Interaction') { + if (error.message === 'Unknown interaction') { logger.debug('Interaction has already been responded to or does no longer exist.'); return; } - logger.fatal(error, 'Unhandled error while awaiting or handling component interaction.'); + logger.fatal( + error, + `Unhandled error while awaiting or handling component interaction. Execution ID: ${executionId}` + ); return; } };