feat: add clearing cache to switchUser

This commit is contained in:
Yellowy
2023-01-18 00:27:32 -07:00
parent fc1c87bd62
commit 2d6ffdf55f
2 changed files with 20 additions and 1 deletions

1
typings/index.d.ts vendored
View File

@@ -932,6 +932,7 @@ export class Client<Ready extends boolean = boolean> extends BaseClient {
public customStatusAuto(client?: this): undefined;
public authorizeURL(url: string, options?: object): Promise<boolean>;
public sleep(milliseconds: number): Promise<void> | null;
public clearCache(cache: Collection<any, any>): void;
public toJSON(): unknown;
public on<K extends keyof ClientEvents>(event: K, listener: (...args: ClientEvents[K]) => Awaitable<void>): this;