Skip to content

UsingClient

Extends

  • BaseClient

Properties

PropertyTypeInherited from
cacheCacheBaseClient.cache
channelsChannelShorterBaseClient.channels
commands?CommandHandlerBaseClient.commands
components?ComponentHandlerBaseClient.components
debugger?LoggerBaseClient.debugger
emojisEmojiShorterBaseClient.emojis
guildsGuildShorterBaseClient.guilds
interactionsInteractionShorterBaseClient.interactions
langs?LangsHandlerBaseClient.langs
loggerLoggerBaseClient.logger
membersMemberShorterBaseClient.members
messagesMessageShorterBaseClient.messages
middlewares?Record<string, MiddlewareContext>BaseClient.middlewares
optionsundefined | BaseClientOptionsBaseClient.options
reactionsReactionShorterBaseClient.reactions
restApiHandlerBaseClient.rest
rolesRoleShorterBaseClient.roles
templatesTemplateShorterBaseClient.templates
threadsThreadShorterBaseClient.threads
usersUsersShorterBaseClient.users
webhooksWebhookShorterBaseClient.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


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): void

Parameters

ParameterType
__namedParametersServicesOptions

Returns

void

Inherited from

BaseClient.setServices

Source

seyfert/src/client/base.ts:142


start()

1
start(options: Pick<DeepPartial<StartOptions>,
2
| "token"
3
| "langsDir"
4
| "commandsDir"
5
| "componentsDir"
6
| "connection">): Promise<void>

Parameters

ParameterType
optionsPick<DeepPartial<StartOptions>, | "token" | "langsDir" | "commandsDir" | "componentsDir" | "connection">

Returns

Promise<void>

Inherited from

BaseClient.start

Source

seyfert/src/client/base.ts:204


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