From 029f79b80df507e9cee8cd17caa7488499fb0a1e Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Sun, 22 Oct 2017 01:40:37 +0000 Subject: [PATCH] This should do it --- 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 be1f4537..070fcaf9 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; + const data = body.data[name]; const tips = [].concat(data.allytips, data.enemytips); const embed = new MessageEmbed() .setColor(0x002366)