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

Discord Interactions

Deno library to handle Discord Interactions via http.

Example

import { interactions, message } from "https://deno.land/x/discordinteractions/mod.ts";
import { serve } from "https://deno.land/std/http/server.ts";

const client = interactions({
  publicKey: "<YOUR_PUBLIC_KEY>"
})
  .slash("test", (i) => message({ content: `Hello ${i.member?.user.username}!` }));

serve(client.handle);