mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-02 14:38:49 +00:00
fix: fix "Unknown interaction" error not being handled due to uppercase I
This commit is contained in:
1 parent
b2a3349d5e
commit
8a0ade3ac4
1 file changed
+5
-2
@@ -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;
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user