Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,8 @@ export class Client extends AsyncEventEmitter<Events> {
}

/**
* Connect to Revolt
* Connect to Revolt.
* To be called after `client.login`'s `Promise` resolves
*/
connect(): void {
clearTimeout(this.#reconnectTimeout);
Expand Down Expand Up @@ -362,6 +363,7 @@ export class Client extends AsyncEventEmitter<Events> {

/**
* Log in with auth data, creating a new session in the process.
* Does not automatically connect. A call to `Client.connect()` is required after this `Promise` resolves
* @param details Login data object
* @returns An on-boarding function if on-boarding is required, undefined otherwise
*/
Expand All @@ -385,7 +387,8 @@ export class Client extends AsyncEventEmitter<Events> {
}

/**
* Log in as a bot
* Log in as a bot.
* Automatically connects
* @param token Bot token
*/
async loginBot(token: string): Promise<void> {
Expand Down