fix: type error

This commit is contained in:
Skillz4Killz
2023-03-16 13:23:45 +00:00
parent 580206a6f5
commit 40c19da9ca

View File

@@ -54,10 +54,13 @@ export class RequestHandler {
this.client = client
this.discordeno = createRestManager({
token: this.client.token,
proxy : {
baseUrl: options.baseURL ?? this.client.options.proxyURL,
authorization: this.client.token,
}
proxy:
options.baseURL ?? this.client.options.proxyURL
? {
baseUrl: options.baseURL ?? this.client.options.proxyURL!,
authorization: this.client.token,
}
: undefined,
})
this.userAgent = `DiscordBot (https://github.com/discordeno/discordeno, ${version})`