mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 06:28:53 +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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (error.message === 'Unknown Interaction') {
|
if (error.message === 'Unknown interaction') {
|
||||||
logger.debug('Interaction has already been responded to or does no longer exist.');
|
logger.debug('Interaction has already been responded to or does no longer exist.');
|
||||||
return;
|
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;
|
return;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Reference in new issue
Block a user