Poe fixed

This commit is contained in:
Cohee
2023-06-09 22:31:57 +03:00
parent dac67af6b0
commit 9e0607c7cb

View File

@@ -374,7 +374,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);