document guildMemberAdd

This commit is contained in:
Amish Shah
2016-08-28 18:12:44 +01:00
parent 6bc7220ded
commit 309bc5da1f
2 changed files with 8 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@@ -89,7 +89,13 @@ class Guild {
member.voiceChannelID = voiceState.channel_id;
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) {
this.client.emit(Constants.Events.GUILD_MEMBER_ADD, this, member);
}