async updateGuild(guild) {
    if (this.context.prefsManager.copy_org_structure_locally) {
      await this.channelsTable.updateFromDiscord(guild.channels.cache, guild);
      await this.membersTable.updateFromDiscord(guild.members.cache, guild);
      await this.rolesTable.updateFromDiscord(guild.roles.cache, guild);
    }
  }
/**
   * Updates a Discord guild according to the information fetched from the Client.
   * @todo to implement hard linking/hooks between tables, so when some entity gets removed from the guild,
   * related entities in other tables also get removed.
   * @param  {Guild}   guild the Discord guild
   * @return {Promise}       nothing
   */
Updates a Discord guild according to the information fetched from the Client.
@todo to implement hard linking/hooks between tables, so when some entity gets removed from the guild,
related entities in other tables also get removed.
@param  {Guild}   guild the Discord guild
@return {Promise}       nothing
Updates a Discord guild according to the information fetched from the Client . @todo to implement hard linking / hooks between tables so when some entity gets removed from the guild related entities in other tables also get removed . @param { Guild } guild the Discord guild @return { Promise } nothing
async updateGuild(guild) {
    if (this.context.prefsManager.copy_org_structure_locally) {
      await this.channelsTable.updateFromDiscord(guild.channels.cache, guild);
      await this.membersTable.updateFromDiscord(guild.members.cache, guild);
      await this.rolesTable.updateFromDiscord(guild.roles.cache, guild);
    }
  }
async updateGuild ( guild ) { if ( this . context . prefsManager . copy_org_structure_locally ) { await this . channelsTable . updateFromDiscord ( guild . channels . cache , guild ) ; await this . membersTable . updateFromDiscord ( guild . members . cache , guild ) ; await this . rolesTable . updateFromDiscord ( guild . roles . cache , guild ) ; } }
Updates a Discord guild according to the information fetched from the Client.
Updates a Discord guild according to the information fetched from the Client .