mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
feat: ditch histories
This commit is contained in:
1 parent
9a2e11a2a4
commit
631c051895
2 files changed
+18
-23
No files matched your search
@@ -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/',
|
||||
|
||||
Reference in new issue
Block a user