Back to APIs list
Discord API examples & templates
Use these vals as a playground to view and fork Discord API examples and templates on Val Town. Run any example below or find templates that can be used as a pre-built solution.
1
2
3
4
import { discordSendDM } from "https://esm.town/v/vtdocs/discordSendDM";
const result = await discordSendDM(Deno.env.get("discordBot"), "420257368417239041", "Hello!");
console.log(result);