mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
fix: type error
This commit is contained in:
@@ -54,10 +54,13 @@ export class RequestHandler {
|
|||||||
this.client = client
|
this.client = client
|
||||||
this.discordeno = createRestManager({
|
this.discordeno = createRestManager({
|
||||||
token: this.client.token,
|
token: this.client.token,
|
||||||
proxy : {
|
proxy:
|
||||||
baseUrl: options.baseURL ?? this.client.options.proxyURL,
|
options.baseURL ?? this.client.options.proxyURL
|
||||||
authorization: this.client.token,
|
? {
|
||||||
}
|
baseUrl: options.baseURL ?? this.client.options.proxyURL!,
|
||||||
|
authorization: this.client.token,
|
||||||
|
}
|
||||||
|
: undefined,
|
||||||
})
|
})
|
||||||
|
|
||||||
this.userAgent = `DiscordBot (https://github.com/discordeno/discordeno, ${version})`
|
this.userAgent = `DiscordBot (https://github.com/discordeno/discordeno, ${version})`
|
||||||
|
|||||||
Reference in New Issue
Block a user