mirror of
https://github.com/danbulant/discord.js
synced 2026-06-19 14:41:36 +00:00
Webpack build for branch master: 956372731f
This commit is contained in:
parent
335b934fe7
commit
9dcca8b6c9
2 changed files with 5 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
4
discord.master.min.js
vendored
4
discord.master.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue