Skip to content

Instantly share code, notes, and snippets.

View Querijn's full-sized avatar

Querijn Heijmans Querijn

View GitHub Profile
@Querijn
Querijn / ddragon_example.js
Last active May 9, 2024 02:04
Get Champion by key or by ID with the latest DDragon version (Javascript)
let championByIdCache = {};
let championJson = {};
async function getLatestChampionDDragon(language = "en_US") {
if (championJson[language])
return championJson[language];
let response;
let versionIndex = 0;