koishi-plugin-beatsaber-bot
Version:
一个 用于 BeatSaber 的 koishi Bot 插件
26 lines (25 loc) • 1.08 kB
TypeScript
import { BeatLeaderClient, BeatSaverClient } from "../base";
import { Leaderboard } from "../interfaces/beatleader";
interface MapDiffOption {
difficulty?: string;
mode?: string;
}
export declare class BeatLeaderService {
private bsClient;
private blClient;
constructor(bsClient: BeatSaverClient, blClient: BeatLeaderClient);
getScoreByPlayerIdAndMapId(playerId: string, mapId: string, option?: MapDiffOption): Promise<Leaderboard>;
getTokenInfo(ak: string): Promise<import("../base").OAuthTokenInfoResponse>;
refreshOAuthToken: (rk: string) => Promise<import("../base").OAuthTokenResponse>;
getPlayerScoresWithUserInfo(accountId: string, queryParams?: any): Promise<{
scores: import("../interfaces/beatleader").Score[];
userInfo: import("../interfaces/beatleader").BeatLeaderUser;
}>;
getScoreAndBSMapByScoreId(scoreId: string): Promise<{
score: import("../interfaces/beatleader").Score;
bsMap: import("../interfaces/beatsaver").BSMap;
statistic: any;
bsor: unknown;
}>;
}
export {};