Skip to main content
Module

x/discordeno/mod.ts>runMethod

Discord API library for Deno
Extremely Popular
Go to Latest
function runMethod
Re-export
import { runMethod } from "https://deno.land/x/discordeno@13.0.0-rc45/mod.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>