mirror of
https://github.com/danbulant/discord.js
synced 2026-06-19 14:41:36 +00:00
document guildMemberAdd
This commit is contained in:
parent
6bc7220ded
commit
309bc5da1f
2 changed files with 8 additions and 2 deletions
File diff suppressed because one or more lines are too long
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue