Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/discordeno/helpers/members/mod.ts>getDmChannel

Discord API library for Deno
Go to Latest
function getDmChannel
import { getDmChannel } from "https://deno.land/x/discordeno@17.0.1/helpers/members/mod.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.