Skip to content

Creating and managing lobbies

dysolix edited this page Apr 19, 2024 · 1 revision

Creating a lobby for a specific queue

await client.request("post", "/lol-lobby/v2/lobby", {
    body: {
        queueId: 420
    } as any
});

Creating a lobby for a custom game

await client.request("post", "/lol-lobby/v2/lobby", {
    body: {
        isCustom: true,
        customGameLobby: {
            lobbyName: "...",
            configuration: {
                mapId: 11,
                gameMode: "CLASSIC",
                mutators: {
                    id: 6 // This controls the pick mode. Valid values: 1 -> Blind pick 2 -> Draft pick 4 -> All random 6 -> Tournament draft
                },
                spectatorPolicy: "AllAllowed",
                teamSize: 5
            }
        }
    } as any
});
```