Skip to main content
Module

x/harmony/deploy.ts>SlashClient#verifyServerRequest

An easy to use Discord API Library for Deno.
Go to Latest
method SlashClient.prototype.verifyServerRequest
import { SlashClient } from "https://deno.land/x/harmony@v2.9.0/deploy.ts";

Verify Deno Std HTTP Server Request and return Interaction.

Data present in Interaction returned by this method is very different from actual typings as there is no real Client behind the scenes to cache things.

Parameters

req: { headers: Headers; method: string; body: Deno.Reader | Uint8Array; respond: (options: { status?: number; headers?: Headers; body?: BodyInit; }) => Promise<void>; }

Returns

Promise<false | Interaction>