def update_data(new_data = nil)
      new_data ||= JSON.parse(API::Channel.resolve(@bot.token, @id))
      @name = new_data[:name] || new_data['name'] || @name
      @topic = new_data[:topic] || new_data['topic'] || @topic
      @position = new_data[:position] || new_data['position'] || @position
      @bitrate = new_data[:bitrate] || new_data['bitrate'] || @bitrate
      @user_limit = new_data[:user_limit] || new_data['user_limit'] || @user_limit
      new_nsfw = new_data.key?(:nsfw) ? new_data[:nsfw] : new_data['nsfw']
      @nsfw = new_nsfw.nil? ? @nsfw : new_nsfw
      @parent_id = new_data[:parent_id] || new_data['parent_id'] || @parent_id
      process_permission_overwrites(new_data[:permission_overwrites] || new_data['permission_overwrites'])
      @rate_limit_per_user = new_data[:rate_limit_per_user] || new_data['rate_limit_per_user'] || @rate_limit_per_user
    end
def update_data(new_data = nil)
      new_data ||= JSON.parse(API::Channel.resolve(@bot.token, @id))
      @name = new_data[:name] || new_data['name'] || @name
      @topic = new_data[:topic] || new_data['topic'] || @topic
      @position = new_data[:position] || new_data['position'] || @position
      @bitrate = new_data[:bitrate] || new_data['bitrate'] || @bitrate
      @user_limit = new_data[:user_limit] || new_data['user_limit'] || @user_limit
      new_nsfw = new_data.key?(:nsfw) ? new_data[:nsfw] : new_data['nsfw']
      @nsfw = new_nsfw.nil? ? @nsfw : new_nsfw
      @parent_id = new_data[:parent_id] || new_data['parent_id'] || @parent_id
      process_permission_overwrites(new_data[:permission_overwrites] || new_data['permission_overwrites'])
      @rate_limit_per_user = new_data[:rate_limit_per_user] || new_data['rate_limit_per_user'] || @rate_limit_per_user
    end
Updates the cached data with new data
 @note For internal use only
 @!visibility private