code: function RiotApi(key, config = {}) {
    if (!(this instanceof RiotApi)) return new RiotApi(...arguments);
    this.config = JSON.parse(JSON.stringify(RiotApi.defaultConfig));
    if (key instanceof Object)
      config = key;
    else
      this.config.key = key;
    Object.assign(this.config, config);
    this.regions = {};
    this.hasRegions = this.config.prefix.includes('%s');
  }
docs: `RiotApi(key [, config])` or `RiotApi(config)` with `config.key` set.