Skip to content

Document logging in as a user instead of a bot. #139

@Psychpsyo

Description

@Psychpsyo

Describe your feature

I tried this earlier:

import { Client } from "stoat.js";
const client = new Client();
client.on("ready", async (e) => console.log(e));
client.login({ email: "foo@bar.com", password: "Password12345" });

Unfortunately, it does not work. One must manually call client.connect() once the promise from login() resolves, which seems to be entirely undocumented. It would be nice if either this was not necessary, or it was documented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions