This commit is contained in:
Amish Shah
2017-08-25 23:57:29 +01:00
parent 84153be894
commit 5a3b59b4b0

View File

@@ -287,7 +287,7 @@ class Client extends EventEmitter {
if (typeof token !== 'string') throw new Error('TOKEN_INVALID');
token = token.replace(/^Bot\s*/i, '');
this.manager.connectToWebSocket(token, resolve, reject);
});
}).catch(() => this.destroy());
}
/**