Rename some events (mainly guild events)

This commit is contained in:
Amish Shah
2016-10-26 15:52:40 +01:00
parent 45632b2eae
commit 35ac80024a
8 changed files with 18 additions and 26 deletions

View File

@@ -15,7 +15,7 @@ class GuildRoleUpdateAction extends Action {
if (role) {
oldRole = cloneObject(role);
role.setup(data.role);
client.emit(Constants.Events.GUILD_ROLE_UPDATE, guild, oldRole, role);
client.emit(Constants.Events.GUILD_ROLE_UPDATE, oldRole, role);
}
return {
@@ -33,8 +33,7 @@ class GuildRoleUpdateAction extends Action {
/**
* Emitted whenever a guild role is updated.
* @event Client#guildRoleUpdate
* @param {Guild} guild The guild that the role was updated in.
* @event Client#roleUpdate
* @param {Role} oldRole The role before the update.
* @param {Role} newRole The role after the update.
*/