From d4d903323eece4dd66484e94749de8f12fa584e9 Mon Sep 17 00:00:00 2001 From: Cohee Date: Fri, 9 Jun 2023 22:33:54 +0300 Subject: [PATCH] Poe fixed --- poe-client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poe-client.js b/poe-client.js index a3d3e70bb..666f88acb 100644 --- a/poe-client.js +++ b/poe-client.js @@ -315,7 +315,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);