fix(client): handle promise rejections
This commit is contained in:
@@ -12,7 +12,7 @@ const Util = require('../util/Util');
|
|||||||
*/
|
*/
|
||||||
class BaseClient extends EventEmitter {
|
class BaseClient extends EventEmitter {
|
||||||
constructor(options = {}) {
|
constructor(options = {}) {
|
||||||
super();
|
super({ captureRejections: true });
|
||||||
|
|
||||||
if (options.intents) {
|
if (options.intents) {
|
||||||
process.emitWarning('Intents is not available.', 'DeprecationWarning');
|
process.emitWarning('Intents is not available.', 'DeprecationWarning');
|
||||||
|
|||||||
Reference in New Issue
Block a user