mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 06:42:50 +02:00
snekfetch why
This commit is contained in:
@@ -26,7 +26,7 @@ module.exports = class BulbapediaCommand extends Command {
|
||||
const { query } = args;
|
||||
try {
|
||||
const { body } = await snekfetch
|
||||
.get('http://bulbapedia.bulbagarden.net/w/api.php')
|
||||
.get('https://bulbapedia.bulbagarden.net/w/api.php')
|
||||
.query({
|
||||
action: 'query',
|
||||
prop: 'extracts',
|
||||
|
||||
@@ -28,7 +28,7 @@ module.exports = class PokedexCommand extends Command {
|
||||
const { pokemon } = args;
|
||||
try {
|
||||
const { body } = await snekfetch
|
||||
.get(`https://pokeapi.co/api/v2/pokemon-species/${pokemon}`);
|
||||
.get(`https://pokeapi.co/api/v2/pokemon-species/${pokemon}/`);
|
||||
const id = `${'000'.slice(body.id.toString().length)}${body.id}`;
|
||||
const embed = new MessageEmbed()
|
||||
.setColor(0xED1C24)
|
||||
|
||||
Reference in New Issue
Block a user