Skip to content

WorkerClient

Extends

  • BaseClient

Type parameters

Type parameterValue
Ready extends booleanboolean

Constructors

new WorkerClient(options)

1
new WorkerClient<Ready>(options?: WorkerClientOptions): WorkerClient<Ready>

Parameters

ParameterType
options?WorkerClientOptions

Returns

WorkerClient<Ready>

Overrides

BaseClient.constructor

Source

seyfert/src/client/workerclient.ts:56

Properties

PropertyTypeOverridesInherited from
cacheCacheBaseClient.cacheBaseClient.cache
channelsChannelShorterBaseClient.channelsBaseClient.channels
commands?CommandHandlerBaseClient.commandsBaseClient.commands
components?ComponentHandlerBaseClient.componentsBaseClient.components
debugger?LoggerBaseClient.debuggerBaseClient.debugger
emojisEmojiShorterBaseClient.emojisBaseClient.emojis
events?EventHandler--
guildsGuildShorterBaseClient.guildsBaseClient.guilds
interactionsInteractionShorterBaseClient.interactionsBaseClient.interactions
langs?LangsHandlerBaseClient.langsBaseClient.langs
loggerLoggerBaseClient.loggerBaseClient.logger
meWhen<Ready, ClientUser, never>--
membersMemberShorterBaseClient.membersBaseClient.members
messagesMessageShorterBaseClient.messagesBaseClient.messages
middlewares?Record<string, MiddlewareContext>BaseClient.middlewaresBaseClient.middlewares
optionsundefined | WorkerClientOptionsBaseClient.optionsBaseClient.options
promisesMap<string, Object>--
reactionsReactionShorterBaseClient.reactionsBaseClient.reactions
restApiHandlerBaseClient.restBaseClient.rest
rolesRoleShorterBaseClient.rolesBaseClient.roles
shardsMap<number, Shard>--
templatesTemplateShorterBaseClient.templatesBaseClient.templates
threadsThreadShorterBaseClient.threadsBaseClient.threads
usersUsersShorterBaseClient.usersBaseClient.users
webhooksWebhookShorterBaseClient.webhooksBaseClient.webhooks

Accessors

applicationId

1
get applicationId(): string
1
set applicationId(id: string): void

Parameters

ParameterType
idstring

Returns

string

Source

seyfert/src/client/base.ts:134


botId

1
get botId(): string
1
set botId(id: string): void

Parameters

ParameterType
idstring

Returns

string

Source

seyfert/src/client/base.ts:126


latency

1
get latency(): number

Returns

number

Source

seyfert/src/client/workerclient.ts:93


proxy

1
get proxy(): APIRoutes

Returns

APIRoutes

Source

seyfert/src/client/base.ts:138


workerId

1
get workerId(): number

Returns

number

Source

seyfert/src/client/workerclient.ts:89

Methods

getRC()

1
getRC<T>(): Promise<Object & Omit<T, "locations" | "debug"> & Object>

Type parameters

Type parameterValue
T extends InternalRuntimeConfigHTTP | InternalRuntimeConfigInternalRuntimeConfigHTTP | InternalRuntimeConfig

Returns

Promise<Object & Omit<T, "locations" | "debug"> & Object>

Inherited from

BaseClient.getRC

Source

seyfert/src/client/base.ts:300


loadCommands()

1
loadCommands(dir?: string): Promise<void>

Parameters

ParameterType
dir?string

Returns

Promise<void>

Inherited from

BaseClient.loadCommands

Source

seyfert/src/client/base.ts:272


loadComponents()

1
loadComponents(dir?: string): Promise<void>

Parameters

ParameterType
dir?string

Returns

Promise<void>

Inherited from

BaseClient.loadComponents

Source

seyfert/src/client/base.ts:280


loadEvents()

1
loadEvents(dir?: string): Promise<void>

Parameters

ParameterType
dir?string

Returns

Promise<void>

Source

seyfert/src/client/workerclient.ts:129


loadLangs()

1
loadLangs(dir?: string): Promise<void>

Parameters

ParameterType
dir?string

Returns

Promise<void>

Inherited from

BaseClient.loadLangs

Source

seyfert/src/client/base.ts:288


postMessage()

1
postMessage(body: any): boolean | void

Parameters

ParameterType
bodyany

Returns

boolean | void

Source

seyfert/src/client/workerclient.ts:137


setServices()

1
setServices(__namedParameters: ServicesOptions & Object): void

Parameters

ParameterType
__namedParametersServicesOptions & Object

Returns

void

Overrides

BaseClient.setServices

Source

seyfert/src/client/workerclient.ts:101


start()

1
start(options: Omit<DeepPartial<StartOptions>, "token" | "httpConnection" | "connection">): Promise<void>

Parameters

ParameterType
optionsOmit<DeepPartial<StartOptions>, "token" | "httpConnection" | "connection">

Returns

Promise<void>

Overrides

BaseClient.start

Source

seyfert/src/client/workerclient.ts:123


t()

1
t(locale: string): __InternalParseLocale<DefaultLocale> & Object

Parameters

ParameterType
localestring

Returns

__InternalParseLocale<DefaultLocale> & Object

Inherited from

BaseClient.t

Source

seyfert/src/client/base.ts:296


tellWorker()

1
tellWorker(workerId: number, func: (_: this) => Object): Promise<unknown>

Parameters

ParameterType
workerIdnumber
func(_: this) => Object

Returns

Promise<unknown>

Source

seyfert/src/client/workerclient.ts:305


uploadCommands()

1
uploadCommands(applicationId?: string): Promise<void>

Parameters

ParameterType
applicationId?string

Returns

Promise<void>

Inherited from

BaseClient.uploadCommands

Source

seyfert/src/client/base.ts:241