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

@@ -21,6 +21,12 @@ class ClientDataManager {
const guild = new Guild(this.client, data);
this.client.guilds.set(guild.id, guild);
if (this.pastReady && !already) {
/**
* Emitted whenever the client joins a Guild.
*
* @event Client#guildCreate
* @param {Guild} guild the created guild.
*/
this.client.emit(Constants.Events.GUILD_CREATE, guild);
}