mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
Document all the events
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user