From caa985590bc9a425b1d65cb319e3f00a354b5aa9 Mon Sep 17 00:00:00 2001 From: Cohee Date: Wed, 7 Jun 2023 23:08:20 +0300 Subject: [PATCH] Fix Poe client --- poe-client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poe-client.js b/poe-client.js index 2ffa5c8ab..a3d3e70bb 100644 --- a/poe-client.js +++ b/poe-client.js @@ -318,7 +318,7 @@ class Client { if (!viewer.availableBots) { throw new Error('Invalid token.'); } - const botList = viewer.viewerBotList; + const botList = viewer.availableBotsConnection.edges.map(x => x.node); const retries = 2; const bots = {}; for (const bot of botList.filter(x => x.deletionState == 'not_deleted')) {