mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 20:13:30 +01:00
document guildMemberAdd
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -89,7 +89,13 @@ class Guild {
|
|||||||
member.voiceChannelID = voiceState.channel_id;
|
member.voiceChannelID = voiceState.channel_id;
|
||||||
this.channels.get(voiceState.channel_id).members.set(member.user.id, member);
|
this.channels.get(voiceState.channel_id).members.set(member.user.id, member);
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* Emitted whenever a user joins a guild.
|
||||||
|
*
|
||||||
|
* @event Client#guildMemberAdd
|
||||||
|
* @param {Guild} guild the guild that the user has joined
|
||||||
|
* @param {GuildMember} member the member that has joined
|
||||||
|
*/
|
||||||
if (this.client.ws.status === Constants.Status.READY && !noEvent) {
|
if (this.client.ws.status === Constants.Status.READY && !noEvent) {
|
||||||
this.client.emit(Constants.Events.GUILD_MEMBER_ADD, this, member);
|
this.client.emit(Constants.Events.GUILD_MEMBER_ADD, this, member);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user