docs: move event docstrings to the emitting line of code

This commit is contained in:
SpaceEEC
2018-11-27 21:28:36 +01:00
parent 1d1b3f25e1
commit fd21bbb7bf
21 changed files with 109 additions and 103 deletions

View File

@@ -6,7 +6,13 @@ class GuildBanRemove extends Action {
const client = this.client;
const guild = client.guilds.get(data.guild_id);
const user = client.users.add(data.user);
if (guild && user) client.emit(Events.GUILD_BAN_REMOVE, guild, user);
/**
* Emitted whenever a member is unbanned from a guild.
* @event Client#guildBanRemove
* @param {Guild} guild The guild that the unban occurred in
* @param {User} user The user that was unbanned
*/
if (guild && user) client.emit(Events.GUILD_BAN_REMOVEGUILD_BAN_REMOVE, guild, user);
}
}