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
let user = new User(data.leader.id);
^
TypeError: User is not a constructor
at Group._parse (/node_modules/mangadex-full-api/src/structure/group.js:71:24)
at /node_modules/mangadex-full-api/src/structure/group.js:146:22
at processTicksAndRejections (node:internal/process/task_queues:94:5)
This is while calling for group data.
async function group(){
api.agent.login(usrname, pass, false).then(async () => {
var group = new api.Group();
await group.fillByQuery("Doki Fansubs");
console.log(`${group.title} | ${group.leader} | ${group.id}`);
})
}
The text was updated successfully, but these errors were encountered:
This is while calling for group data.
The text was updated successfully, but these errors were encountered: