From 9e0607c7cba1e36e2dda360e49924f9e191e1ddc Mon Sep 17 00:00:00 2001 From: Cohee Date: Fri, 9 Jun 2023 22:31:57 +0300 Subject: [PATCH] Poe fixed --- src/poe-client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/poe-client.js b/src/poe-client.js index 5d8e4fc86..dc7c30f62 100644 --- a/src/poe-client.js +++ b/src/poe-client.js @@ -374,7 +374,7 @@ class Client { async get_bots() { const viewer = this.next_data.props.pageProps.payload.viewer; - if (!viewer.availableBots) { + if (!viewer.availableBotsConnection) { throw new Error('Invalid token.'); } const botList = viewer.availableBotsConnection.edges.map(x => x.node);