mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
User is now set properly
This commit is contained in:
3
index.js
3
index.js
@@ -199,6 +199,8 @@ exports.Client.prototype.connectWebsocket = function( cb ) {
|
||||
self.keepAlive.apply( self );
|
||||
}, data.heartbeat_interval );
|
||||
|
||||
client.user = new User( data.user );
|
||||
|
||||
var _servers = data.guilds,
|
||||
servers = [];
|
||||
|
||||
@@ -221,7 +223,6 @@ exports.Client.prototype.connectWebsocket = function( cb ) {
|
||||
client.PMList.add( new PMChannel( data.private_channels[ x ].recipient, data.private_channels[ x ].id ) );
|
||||
}
|
||||
|
||||
client.user = new User( data.user );
|
||||
} else if ( dat.t === "MESSAGE_CREATE" ) {
|
||||
var data = dat.d;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user