diff --git a/src/poe-client.js b/src/poe-client.js index be0086beb..5d8e4fc86 100644 --- a/src/poe-client.js +++ b/src/poe-client.js @@ -377,7 +377,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 = {}; const promises = [];