Constructor
Methods
# async getHistory(leagueType, date) → {Promise.<Information>}
주어진 날에 열린 해당 리그 경기를 가져온다
Parameters:
| Name | Type | Description |
|---|---|---|
leagueType |
ESportsLeague |
찾고자 하는 리그 |
date |
Date |
경기를 한 날짜 |
경기 결과를 배열 형태로 반환하는 Promise
Promise.<Information>
Example
const sh = new SportsHistory();
let data = await sh.eSports.getHistory("lck", new Date("2022/02/12"));
console.log(data);
Type Definitions
string
# ESportsLeague
| 리그 이름 | 값 |
|---|---|
| LCK | lck |
| LCK CL | lck_cl |
| BSC | bsc |
| PWS | pws |
| GSL | gsl |
| LCK AS | lck_as |
| LPL | lpl |
| LEC | lec |
| LCS | lcs |
| 롤드컵 | world_championship |
| MSI | msi |
| MSC | msc |
| LOL 올스타 | lol_allstar |
| 케스파컵 | kespacup |
| CK | ck |
| Rift Rivals | riftrivals |
| PCS | pubg_pcs |
| PGC | pgc |
| PKC | pkc |
| PKL | pkl |
| BWS | bws |
| PMPS | pmps |
| VCT 챌린저스 | vck |
| VCT | vct |
| WCK | wck |
| 호라이즌 컵 | whc |
| OWL | owl |
| OSL | osl_futures |