diff --git a/src/rest/request_manager.ts b/src/rest/request_manager.ts index af77cb559..6e9ca69c5 100644 --- a/src/rest/request_manager.ts +++ b/src/rest/request_manager.ts @@ -1,4 +1,4 @@ -import { authorization, eventHandlers, restAuthorization } from "../bot.ts"; +import { authorization, eventHandlers, secretKey } from "../bot.ts"; import { Errors, FileContent, @@ -224,7 +224,7 @@ function runMethod( return fetch(url, { body: JSON.stringify(body || {}), headers: { - authorization: restAuthorization, + authorization: secretKey, }, method: method.toUpperCase(), })