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

x/oasis/packages/deps.ts>runMethod

An object oriented Discordeno framework
Latest
function runMethod
Re-export
import { runMethod } from "https://deno.land/x/oasis@2.1.0/packages/deps.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>