Skip to main content
Module

x/harmony/deploy.ts>init

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

Initialize Slash Commands Handler for Deno Deploy. Easily create Serverless Slash Commands on the fly.

Examples

init({
  publicKey: "my public key",
  token: "my bot's token", // only required if you want to manage slash commands in code
})
// takes up `PUBLIC_KEY` and `TOKEN` from ENV
init({ env: true })

Parameters

options: { env: boolean; path?: string; }

Initialization options

Parameters

options: { publicKey: string; token?: string; path?: string; }