UNPKG

supercell-api-scraper

Version:

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

26 lines (20 loc) 521 B
export default class Player { #client: any; constructor(client: any) { this.#client = client; this.find = this.find; this.clashOfClans = this.clashOfClans; return this; } async find(tag: string) { return { "Clash Of Clans": (await this.#client.ClashOfClans.players.find(tag)) .profile, "Clash Royale": null, "Brawl Stars": null, }; } async clashOfClans(tag: string, raw = false) { return await this.#client.ClashOfClans.players.find(tag, raw); } }