diff --git a/commands/search/league-of-legends-champion.js b/commands/search/league-of-legends-champion.js index 070fcaf9..4575fb71 100644 --- a/commands/search/league-of-legends-champion.js +++ b/commands/search/league-of-legends-champion.js @@ -39,7 +39,7 @@ module.exports = class LeagueOfLegendsChampionCommand extends Command { const { id } = search.body.data[name]; const { body } = await snekfetch .get(`https://ddragon.leagueoflegends.com/cdn/${this.version}/data/en_US/champion/${id}.json`); - const data = body.data[name]; + const data = body.data[id]; const tips = [].concat(data.allytips, data.enemytips); const embed = new MessageEmbed() .setColor(0x002366)