mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-05 13:53:12 +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 { 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)
|
||||
|
||||
Reference in New Issue
Block a user