mirror of
https://github.com/discordjs/discord.js.git
synced 2024-08-20 20:14:45 +12:00
User is now set properly
This commit is contained in:
parent
79911c3ac2
commit
8bf04df9e5
1 changed files with 2 additions and 1 deletions
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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue