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