mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -207,7 +207,7 @@ module.exports = class Pokemon {
|
||||
|
||||
async fetchEncounters() {
|
||||
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);
|
||||
if (!body.length) {
|
||||
this.encounters = body;
|
||||
|
||||
Reference in New Issue
Block a user