Skip to content

UsingClient

Signature

export type UsingClient = BaseClient & RegisteredPluginExtension & RegisteredClient;

Private types

RegisteredClientTypeAlias
type RegisteredClient = SeyfertRegistry extends {    client: infer C;} ? [    C] extends [    {        readonly [__seyfertClientType]?: infer T;    }] ? [    T] extends [    never] ? BaseClient : unknown extends T ? C extends BaseClient ? C : BaseClient : T & Omit<C, typeof __seyfertClientType> : C extends BaseClient ? C : BaseClient : BaseClient;

Properties

Methods

close(): Promise<void>;

Closes resources managed by the plugin lifecycle. This waits for in-flight plugin setup and runs `SeyfertPlugin.teardown`. It does not close the gateway, REST client, or cache adapter.

uploadCommands({ applicationId, cachePath }?: {    applicationId?: string;    cachePath?: string;}): Promise<void>;