Skip to content

Client

Extends

  • BaseClient

Type parameters

Type parameterValue
Ready extends booleanboolean

Constructors

new Client(options)

1
new Client<Ready>(options?: ClientOptions): Client<Ready>

Parameters

ParameterType
options?ClientOptions

Returns

Client<Ready>

Overrides

BaseClient.constructor

Source

seyfert/src/client/client.ts:24

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--
gatewayShardManager--
guildsGuildShorterBaseClient.guildsBaseClient.guilds
interactionsInteractionShorterBaseClient.interactionsBaseClient.interactions
langs?LangsHandlerBaseClient.langsBaseClient.langs
loggerLoggerBaseClient.loggerBaseClient.logger
meIf<Ready, ClientUser, null>--
memberUpdateHandlerMemberUpdateHandler--
membersMemberShorterBaseClient.membersBaseClient.members
messagesMessageShorterBaseClient.messagesBaseClient.messages
middlewares?Record<string, MiddlewareContext>BaseClient.middlewaresBaseClient.middlewares
optionsundefined | ClientOptionsBaseClient.optionsBaseClient.options
presenceUpdateHandlerPresenceUpdateHandler--
reactionsReactionShorterBaseClient.reactionsBaseClient.reactions
restApiHandlerBaseClient.restBaseClient.rest
rolesRoleShorterBaseClient.rolesBaseClient.roles
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


proxy

1
get proxy(): APIRoutes

Returns

APIRoutes

Source

seyfert/src/client/base.ts:138

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/client.ts:61


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


setServices()

1
setServices(__namedParameters: ServicesOptions & Object): void

Parameters

ParameterType
__namedParametersServicesOptions & Object

Returns

void

Overrides

BaseClient.setServices

Source

seyfert/src/client/client.ts:28


start()

1
start(options: Omit<DeepPartial<StartOptions>, "httpConnection">, execute: boolean): Promise<void>

Parameters

ParameterTypeDefault value
optionsOmit<DeepPartial<StartOptions>, "httpConnection">{}
executebooleantrue

Returns

Promise<void>

Overrides

BaseClient.start

Source

seyfert/src/client/client.ts:87


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


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