You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2024. It is now read-only.
I was excited to test the api, but I can't get it to work properly.
So console.log(me) gives me a bunch of information on my account so I assume my SID is entered correctly
As a next step I wanted to log out all the repls I have but the command me.repls returns ReplManager { cache: Collection(0) [Map] {} }
So this is where I'm stuck. I can't loop over the ReplManager object and me.repls[0] = undefined
Is there any way to directly connect to a specific Repl I own? like me.repls['REPL_NAME'] or something.
Or is the ReplManager not showing anything because my Repls are private?
I'm kinda just starting out with hosting some private project at replit and would really appreciate you help.
Thanks in advance =)
const Client = require('replapi-it');
const client = new Client('MY_SUPER_SECRET_SID');
client.on('ready', async () => {
let me = await client.user
console.log(me);
console.log(me.repls);
})
I also tried
let my_repls = await me.repls;
console.log(my_repls);