Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
function createRequestBody
import { createRequestBody } from "https://deno.land/x/discordeno@17.0.0/rest/createRequestBody.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.

Parameters

rest: RestManager
options: CreateRequestBodyOptions