fix: Handle "unknown interaction" with log message and return

This commit is contained in:
Marius Begby committed 2023-08-29 20:48:51 +02:00
1 parent 69fff97e38
commit 48f2f44f21
1 file changed
+5
+5
View File
@@ -63,6 +63,11 @@ export const handleError = async (
return;
}
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.');
return;
}