UNPKG

supercell-api-scraper

Version:

A supercell games scraper that has additional calculations and info, easy to use methods. [BETA]

17 lines (16 loc) 429 B
/** @format */ import BaseGame from '../models/BaseGame.js'; export default class BrawlStars extends BaseGame { constructor(client) { super(client); this.players = { find: this.player, }; } async player(tag) { return await this.bsFetch('players', { tag }); } async bsFetch(domain, options) { return await this.fetch('Brawl Stars', domain, options); } }