events/guildCreate.js

/**
 * Emitted whenever the client joins a guild
 *
 * @see https://discord.js.org/#/docs/main/stable/class/Client?scrollTo=guildCreate
 * @event external:Client#event:"Client#guildCreate"
 */

/**
 * Adds a {@link Guild}
 *
 * @type {Event}
 * @listens external:Client#event:"Client#guildCreate"
 * @see external:Client
 * @memberof Event
 * @name guildCreate
 * @prop {external:Guild} guild discord.js Guild
 * @static
 */
module.exports = {
  name: 'guildCreate',
  handler (guild) {
    this.controllers.get('GuildController').addGuild(guild)
  }
}