docs: update

This commit is contained in:
Elysia 2023-04-03 17:52:24 +07:00
parent ef7fb433ba
commit 402be66265
3 changed files with 9 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -11,6 +11,12 @@ class SessionManager extends CachedManager {
constructor(client, iterable) { constructor(client, iterable) {
super(client, Session, iterable); super(client, Session, iterable);
} }
/**
* The cache of Sessions
* @type {Collection<string, Session>}
* @name SessionManager#cache
*/
/** /**
* Fetch all sessions of the client. * Fetch all sessions of the client.
* @returns {Promise<SessionManager>} * @returns {Promise<SessionManager>}

4
typings/index.d.ts vendored
View File

@ -177,8 +177,8 @@ import {
// @ts-ignore // @ts-ignore
//#region Classes //#region Classes
export class SessionManager extends CachedManager { export class SessionManager extends CachedManager<string, Session, any> {
constructor(client: Client, iterable?: Iterable<unknown>); private constructor(client: Client, iterable: Iterable<any>);
public fetch(): Promise<SessionManager>; public fetch(): Promise<SessionManager>;
public logoutAllDevices(mfaCode?: string): Promise<undefined>; public logoutAllDevices(mfaCode?: string): Promise<undefined>;
} }