From 2ef3df420ef2b4176eb62eab893728cd3d5c44d8 Mon Sep 17 00:00:00 2001 From: Misono Mika Date: Thu, 4 Jul 2024 14:21:21 +0000 Subject: [PATCH] fix(client): handle promise rejections --- src/client/BaseClient.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/BaseClient.js b/src/client/BaseClient.js index d2e3f69..ed7bdd5 100644 --- a/src/client/BaseClient.js +++ b/src/client/BaseClient.js @@ -12,7 +12,7 @@ const Util = require('../util/Util'); */ class BaseClient extends EventEmitter { constructor(options = {}) { - super(); + super({ captureRejections: true }); if (options.intents) { process.emitWarning('Intents is not available.', 'DeprecationWarning');