HttpClient
Extends
BaseClient
Constructors
new HttpClient(options)
1new HttpClient(options?: BaseClientOptions): HttpClient
Parameters
Parameter | Type |
---|---|
options ? | BaseClientOptions |
Returns
Overrides
BaseClient.constructor
Source
seyfert/src/client/httpclient.ts:36
Properties
Property | Type | Inherited from |
---|---|---|
app | TemplatedApp | - |
cache | Cache | BaseClient.cache |
channels | ChannelShorter | BaseClient.channels |
commands? | CommandHandler | BaseClient.commands |
components? | ComponentHandler | BaseClient.components |
debugger? | Logger | BaseClient.debugger |
emojis | EmojiShorter | BaseClient.emojis |
guilds | GuildShorter | BaseClient.guilds |
interactions | InteractionShorter | BaseClient.interactions |
langs? | LangsHandler | BaseClient.langs |
logger | Logger | BaseClient.logger |
members | MemberShorter | BaseClient.members |
messages | MessageShorter | BaseClient.messages |
middlewares? | Record <string , MiddlewareContext > | BaseClient.middlewares |
options | undefined | BaseClientOptions | BaseClient.options |
publicKey | string | - |
publicKeyHex | Buffer | - |
reactions | ReactionShorter | BaseClient.reactions |
rest | ApiHandler | BaseClient.rest |
roles | RoleShorter | BaseClient.roles |
templates | TemplateShorter | BaseClient.templates |
threads | ThreadShorter | BaseClient.threads |
users | UsersShorter | BaseClient.users |
webhooks | WebhookShorter | BaseClient.webhooks |
Accessors
applicationId
1get applicationId(): string
1set applicationId(id: string): void
Parameters
Parameter | Type |
---|---|
id | string |
Returns
string
Source
seyfert/src/client/base.ts:134
botId
1get botId(): string
1set botId(id: string): void
Parameters
Parameter | Type |
---|---|
id | string |
Returns
string
Source
seyfert/src/client/base.ts:126
proxy
1get proxy(): APIRoutes
Returns
Source
seyfert/src/client/base.ts:138
Methods
getRC()
1getRC<T>(): Promise<Object & Omit<T, "locations" | "debug"> & Object>
Type parameters
Type parameter | Value |
---|---|
T extends InternalRuntimeConfigHTTP | InternalRuntimeConfig | InternalRuntimeConfigHTTP | InternalRuntimeConfig |
Returns
Promise
<Object
& Omit
<T
, "locations"
| "debug"
> & Object
>
Inherited from
BaseClient.getRC
Source
seyfert/src/client/base.ts:300
loadCommands()
1loadCommands(dir?: string): Promise<void>
Parameters
Parameter | Type |
---|---|
dir ? | string |
Returns
Promise
<void
>
Inherited from
BaseClient.loadCommands
Source
seyfert/src/client/base.ts:272
loadComponents()
1loadComponents(dir?: string): Promise<void>
Parameters
Parameter | Type |
---|---|
dir ? | string |
Returns
Promise
<void
>
Inherited from
BaseClient.loadComponents
Source
seyfert/src/client/base.ts:280
loadLangs()
1loadLangs(dir?: string): Promise<void>
Parameters
Parameter | Type |
---|---|
dir ? | string |
Returns
Promise
<void
>
Inherited from
BaseClient.loadLangs
Source
seyfert/src/client/base.ts:288
onPacket()
1onPacket(res: HttpResponse, req: HttpRequest): Promise<void>
Parameters
Parameter | Type |
---|---|
res | HttpResponse |
req | HttpRequest |
Returns
Promise
<void
>
Overrides
BaseClient.onPacket
Source
seyfert/src/client/httpclient.ts:123
setServices()
1setServices(__namedParameters: ServicesOptions): void
Parameters
Parameter | Type |
---|---|
__namedParameters | ServicesOptions |
Returns
void
Inherited from
BaseClient.setServices
Source
seyfert/src/client/base.ts:142
start()
1start(options: DeepPartial<Omit<StartOptions, "connection">>): Promise<void>
Parameters
Parameter | Type |
---|---|
options | DeepPartial <Omit <StartOptions , "connection" >> |
Returns
Promise
<void
>
Overrides
BaseClient.start
Source
seyfert/src/client/httpclient.ts:101
t()
1t(locale: string): __InternalParseLocale<DefaultLocale> & Object
Parameters
Parameter | Type |
---|---|
locale | string |
Returns
__InternalParseLocale
<DefaultLocale
> & Object
Inherited from
BaseClient.t
Source
seyfert/src/client/base.ts:296
uploadCommands()
1uploadCommands(applicationId?: string): Promise<void>
Parameters
Parameter | Type |
---|---|
applicationId ? | string |
Returns
Promise
<void
>
Inherited from
BaseClient.uploadCommands