Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
import * as discordeno from "https://deno.land/x/discordeno@18.0.1/plugins/helpers/src/sendDirectMessage.ts";

Variables

Maps the <userId, channelId> for dm channels

Functions

Sends a direct message to a user. This can take two API calls. The first call is to create a dm channel. Then sending the message to that channel. Channel ids are cached as needed to prevent duplicate requests.