mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-03 06:28:53 +00:00
fix: Handle "unknown interaction" with log message and return
This commit is contained in:
1 parent
69fff97e38
commit
48f2f44f21
1 file changed
+5
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user