Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/discordeno_patched/plugins/validations/deps.ts>getDmChannel

Discord API library for Node and Deno
Latest
function getDmChannel
import { getDmChannel } from "https://deno.land/x/discordeno_patched@18.0.3/plugins/validations/deps.ts";

Gets or creates a DM channel with a user.

Parameters

bot: Bot
  • The bot instance to use to make the request.
userId: BigString
  • The ID of the user to create the DM channel with.

Returns

Promise<Channel>

An instance of Channel.