Module

x/discordeno/plugins/mod.ts>sendDirectMessage

Discord API library for Deno
Extremely Popular
Go to Latest
function sendDirectMessage
import { sendDirectMessage } from "https://dotland.deno.dev/x/discordeno@13.0.0-rc45/plugins/mod.ts";

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.

Parameters

bot: Bot
userId: bigint
content: string | CreateMessage
import sendDirectMessage
import { sendDirectMessage } from "https://dotland.deno.dev/x/discordeno@13.0.0-rc45/plugins/mod.ts";