mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 10:25:11 +02:00
Fix
This commit is contained in:
@@ -207,7 +207,7 @@ module.exports = class Pokemon {
|
|||||||
|
|
||||||
async fetchEncounters() {
|
async fetchEncounters() {
|
||||||
if (!this.encountersURL) return null;
|
if (!this.encountersURL) return null;
|
||||||
if (this.encounters.length) return this.encounters;
|
if (this.encounters) return this.encounters;
|
||||||
const { body } = await request.get(this.encountersURL);
|
const { body } = await request.get(this.encountersURL);
|
||||||
if (!body.length) {
|
if (!body.length) {
|
||||||
this.encounters = body;
|
this.encounters = body;
|
||||||
|
|||||||
Reference in New Issue
Block a user