Redirects the client to the Discord OAuth flow.
This will redirect the user to /?session=
import { serve, json, validateRequest } from "https://deno.land/x/sift@0.6.0/mod.ts"; | |
import { InteractionResponseTypes, InteractionTypes, createBot } from "https://deno.land/x/discordeno@18.0.1/mod.ts"; | |
import nacl from "https://cdn.skypack.dev/tweetnacl@v1.0.3?dts"; | |
import { withSafeAtomics } from "https://deno.land/x/oktrue@1.1.0/mod.ts"; | |
// Try it out here: https://discord.gg/5nBCAa45 | |
const kv = withSafeAtomics(await Deno.openKv()); | |
serve({ |