Document all the events

This commit is contained in:
Amish Shah
2016-08-20 00:15:04 +01:00
parent f8b2629b18
commit 65350348a8
26 changed files with 210 additions and 1 deletions

View File

@@ -88,6 +88,14 @@ class Guild {
member._roles = data.roles;
if (this.client.ws.status === Constants.Status.READY) {
/**
* Emitted whenever a Guild Member's Roles change - i.e. new role or removed role
*
* @event Client#guildMemberRolesUpdate
* @param {Guild} guild the guild that the update affects
* @param {Array<Role>} oldRoles the roles before the update
* @param {Guild} newRoles the roles after the update
*/
this.client.emit(Constants.Events.GUILD_MEMBER_ROLES_UPDATE, this, oldRoles, member.roles);
}
}