feat: ditch histories

This commit is contained in:
TresAbhi committed 2023-07-16 17:51:01 +00:00
1 parent 9a2e11a2a4
commit 631c051895
2 files changed
+18 -23

No files matched your search

+6 -2
View File
@@ -12,7 +12,7 @@ import { WARGAMING_APPLICATION_ID } from '../core/node/arguments';
import { CommandRegistry } from '../events/interactionCreate';
import { AccountInfo } from '../types/accountInfo';
export interface LeaguePlayer {
export interface RatingsPlayer {
spa_id: number;
mmr: number;
season_number: number;
@@ -27,7 +27,7 @@ export interface LeaguePlayer {
}
export interface LeagueTop {
result: LeaguePlayer[];
result: RatingsPlayer[];
}
export type RatingsReward = {
@@ -91,6 +91,10 @@ export interface RatingsInfo {
leagues: RatingsLeague[];
}
export interface RatingsNeighbors {
neighbors: RatingsPlayer[];
}
console.log('Caching ratings info...');
const ratingsLeagueInfo = fetch(
'https://na.wotblitz.com/en/api/rating-leaderboards/season/',