Webpack build for branch master: 956372731f

This commit is contained in:
Travis CI 2017-04-28 19:27:43 +00:00
parent 335b934fe7
commit 9dcca8b6c9
2 changed files with 5 additions and 5 deletions

View file

@ -7787,7 +7787,7 @@ class Guild {
* @event Client#guildMemberAdd
* @param {GuildMember} member The member that has joined a guild
*/
if (this.client.ws.status === Constants.Status.READY && emitEvent && !existing) {
if (this.client.ws.connection.status === Constants.Status.READY && emitEvent && !existing) {
this.client.emit(Constants.Events.GUILD_MEMBER_ADD, member);
}
@ -7802,7 +7802,7 @@ class Guild {
const notSame = member.nickname !== oldMember.nickname || !Util.arraysEqual(member._roles, oldMember._roles);
if (this.client.ws.status === Constants.Status.READY && notSame) {
if (this.client.ws.connection.status === Constants.Status.READY && notSame) {
/**
* Emitted whenever a guild member changes - i.e. new role, removed role, nickname
* @event Client#guildMemberUpdate
@ -16811,7 +16811,7 @@ class Client extends EventEmitter {
* @readonly
*/
get status() {
return this.ws.status;
return this.ws.connection.status;
}
/**

File diff suppressed because one or more lines are too long