Module

x/discordeno/rest/runMethod.ts>runMethod

Discord API library for Deno
Extremely Popular
Go to Latest
function runMethod
import { runMethod } from "https://dotland.deno.dev/x/discordeno@13.0.0-rc45/rest/runMethod.ts";

Type Parameters

optional
T = any

Parameters

method:
| "GET"
| "POST"
| "PUT"
| "DELETE"
| "PATCH"
route: string
optional
body: unknown
optional
options: { retryCount?: number; bucketId?: string; headers?: Record<string, string>; }

Returns

Promise<T>