Latest
function getDmChannel
import { getDmChannel } from "https://dotland.deno.dev/x/discordeno@18.0.1/plugins/fileloader/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.