supercell-api-scraper
Version:
A supercell games scraper that has additional calculations and info, easy to use methods. [BETA]
17 lines (16 loc) • 431 B
JavaScript
/** @format */
import BaseGame from '../models/BaseGame.js';
export default class ClashRoyale extends BaseGame {
constructor(client) {
super(client);
this.players = {
find: this.player,
};
}
async player(tag) {
return await this.crFetch('players', { tag });
}
async crFetch(domain, options) {
return await this.fetch('Clash Royale', domain, options);
}
}