diff --git a/packages/rest/src/manager.ts b/packages/rest/src/manager.ts index a42775554..8dda9ed54 100644 --- a/packages/rest/src/manager.ts +++ b/packages/rest/src/manager.ts @@ -402,6 +402,12 @@ export function createRestManager(options: CreateRestManagerOptions): RestManage async makeRequest(method, route, options) { if (rest.isProxied) { + if (rest.authorization !== undefined) { + options ??= {} + options.headers ??= {} + options.headers.authorization = rest.authorization + } + const result = await fetch(`${rest.baseUrl}/v${rest.version}${route}`, rest.createRequestBody(method, options)) if (!result.ok) {