mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
small improvements
This commit is contained in:
3
index.js
3
index.js
@@ -138,8 +138,9 @@ exports.Client.prototype.login = function( email, password ) {
|
||||
|
||||
self.connectWebsocket();
|
||||
|
||||
var time = Date.now();
|
||||
Internal.XHR.login( email, password, function( err, token ) {
|
||||
|
||||
console.log(Date.now() - time);
|
||||
if ( err ) {
|
||||
self.triggerEvent( "disconnected", [ {
|
||||
reason: "failed to log in",
|
||||
|
||||
Reference in New Issue
Block a user