Skip to content
XHXIAIEIN edited this page Jan 28, 2021 · 8 revisions

lol-champ-select

在英雄选择页面中调用的API

英雄数据

根据 championId 查看指定的英雄选择状态,例如角色定位、是否可选,是否免费轮换,是否已拥有,成就等级...

await connection.request('GET', '/lol-champ-select/v1/grid-champions/{championId}')

返回结果

{
    "disabled": false,
    "freeToPlay": false,
    "freeToPlayForQueue": false,
    "freeToPlayReward": false,
    "id": 16,
    "masteryChestGranted": false,
    "masteryLevel": 1,
    "masteryPoints": 1000,
    "name": "众星之子",
    "owned": true,
    "positionsFavorited": [
        "support"
    ],
    "rented": false,
    "roles": [
        "support",
        "mage"
    ],
    "selectionStatus": {
        "banIntented": false,
        "banIntentedByMe": false,
        "isBanned": false,
        "pickIntented": false,
        "pickIntentedByMe": false,
        "pickIntentedPosition": "",
        "pickedByOtherOrBanned": false,
        "selectedByMe": false
    },
    "squarePortraitPath": "/lol-game-data/assets/v1/champion-icons/16.png"
}
Clone this wiki locally