Poe fixed

This commit is contained in:
Cohee
2023-06-09 22:33:54 +03:00
parent 5354086438
commit d4d903323e

View File

@@ -315,7 +315,7 @@ class Client {
async get_bots() { async get_bots() {
const viewer = this.next_data.props.pageProps.payload.viewer; const viewer = this.next_data.props.pageProps.payload.viewer;
if (!viewer.availableBots) { if (!viewer.availableBotsConnection) {
throw new Error('Invalid token.'); throw new Error('Invalid token.');
} }
const botList = viewer.availableBotsConnection.edges.map(x => x.node); const botList = viewer.availableBotsConnection.edges.map(x => x.node);