Skip to main content
Module

x/wackford/discordeno.ts>getDmChannel

The wackiest Discord bot framework for Deno powered by Discordeno
Go to Latest
function getDmChannel
import { getDmChannel } from "https://deno.land/x/wackford@v0.0.2/discordeno.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.