catch promise rejection

This commit is contained in:
Dalton committed 2018-12-12 19:34:13 -08:00
1 parent 7216b2e075
commit 07b4824f76
1 file changed
+4 -1
+4 -1
View File
@@ -675,7 +675,10 @@ client.on('message', message => {
break; break;
case 'async': case 'async':
asyncImageRequest(message); asyncImageRequest(message)
.catch(error => {
sendToBotTestingChannel(error.message);
});
break; break;
// Voice commands // Voice commands