mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 10:33:30 +01:00
Rename some events (mainly guild events)
This commit is contained in:
@@ -17,7 +17,7 @@ class GuildRoleDeleteAction extends Action {
|
||||
guild.roles.delete(data.role_id);
|
||||
this.deleted.set(guild.id + data.role_id, role);
|
||||
this.scheduleForDeletion(guild.id, data.role_id);
|
||||
client.emit(Constants.Events.GUILD_ROLE_DELETE, guild, role);
|
||||
client.emit(Constants.Events.GUILD_ROLE_DELETE, role);
|
||||
} else {
|
||||
role = this.deleted.get(guild.id + data.role_id) || null;
|
||||
}
|
||||
@@ -39,8 +39,7 @@ class GuildRoleDeleteAction extends Action {
|
||||
|
||||
/**
|
||||
* Emitted whenever a guild role is deleted.
|
||||
* @event Client#guildRoleDelete
|
||||
* @param {Guild} guild The guild that the role was deleted in.
|
||||
* @event Client#roleDelete
|
||||
* @param {Role} role The role that was deleted.
|
||||
*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user