fix: fix "Unknown interaction" error not being handled due to uppercase I

This commit is contained in:
Marius Begby committed 2023-08-31 21:04:31 +02:00
1 parent b2a3349d5e
commit 8a0ade3ac4
1 file changed
+5 -2
+5 -2
View File
@@ -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;
}
};