mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 21:12:06 +00: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