fix: type error

This commit is contained in:
Skillz4Killz
2023-03-16 13:23:45 +00:00
parent 580206a6f5
commit 40c19da9ca
+7 -4
View File
@@ -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})`