message: use rest token prop
diff: import { USER_AGENT } from "../util/constants.ts";
  +import { rest } from "./rest.ts";
  /** Creates the request body and headers that are necessary to send a request. Will handle different types of methods and everything necessary for discord. */
  export function createRequestBody(queuedRequest: QueuedRequest) {
  const headers: { [key: string]: string } = {
  - Authorization: `Bot ${queuedRequest.options.token}`,
  + Authorization: rest.token,
  "User-Agent": USER_AGENT,
  };
  @@ -15,7 +16,7 @@ export function createRequestBody(queuedRequest: QueuedRequest) {
  // IF A REASON IS PROVIDED ENCODE IT IN HEADERS
  if (queuedRequest.payload.body?.reason) {
  headers["X-Audit-Log-Reason"] = encodeURIComponent(
  - queuedRequest.payload.body.reason,
  + queuedRequest.payload.body.reason
  );
  }
  @@ -25,11 +26,11 @@ export function createRequestBody(queuedRequest: QueuedRequest) {
  form.append(
  "file",
  queuedRequest.payload.body.file.blob,
  - queuedRequest.payload.body.file.name,
  + queuedRequest.payload.body.file.name
  );
  form.append(
  "payload_json",
  - JSON.stringify({ ...queuedRequest.payload.body, file: undefined }),
  + JSON.stringify({ ...queuedRequest.payload.body, file: undefined })
  );
  queuedRequest.payload.body.file = form;
  } else if (
  @@ -41,7 +42,8 @@ export function createRequestBody(queuedRequest: QueuedRequest) {
  return {
  headers,
  - body: queuedRequest.payload.body?.file ||
  + body:
  + queuedRequest.payload.body?.file ||
  JSON.stringify(queuedRequest.payload.body),
  method: queuedRequest.request.method,
  };
  