From 048db5f6ad1f6136ae9ab2f7aed0a8419106e7f3 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Sun, 22 Oct 2017 02:07:18 +0000 Subject: [PATCH] Why doesn't this work --- commands/search/league-of-legends-champion.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)