mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 22:32:50 +02:00
Why doesn't this work
This commit is contained in:
@@ -39,7 +39,7 @@ module.exports = class LeagueOfLegendsChampionCommand extends Command {
|
|||||||
const { id } = search.body.data[name];
|
const { id } = search.body.data[name];
|
||||||
const { body } = await snekfetch
|
const { body } = await snekfetch
|
||||||
.get(`https://ddragon.leagueoflegends.com/cdn/${this.version}/data/en_US/champion/${id}.json`);
|
.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 tips = [].concat(data.allytips, data.enemytips);
|
||||||
const embed = new MessageEmbed()
|
const embed = new MessageEmbed()
|
||||||
.setColor(0x002366)
|
.setColor(0x002366)
|
||||||
|
|||||||
Reference in New Issue
Block a user