mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-01 00:10:07 +00:00
fix: type error
This commit is contained in:
@@ -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})`
|
||||
|
||||
Reference in New Issue
Block a user