Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/discordeno/rest/mod.ts>runMethod

Discord API library for Deno
Go to Latest
function runMethod
Re-export
import { runMethod } from "https://deno.land/x/discordeno@17.0.0/rest/mod.ts";

Type Parameters

optional
T = any

Parameters

rest: RestManager
method: RequestMethod
route: string
optional
body: any
optional
options: { retryCount?: number; bucketId?: string; headers?: Record<string, string>; }

Returns

Promise<T>