Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
method ClientUser.prototype.selectTextChannel
import { ClientUser } from "https://deno.land/x/discord_rpc_deno@1.0.11/src/structures/ClientUser.ts";

Used to join text channels, group dms, or dms. Returns the Get Channel response, or null if none.

Parameters

channelId: string
  • channel id to join
optional
timeout: number
  • asynchronously join channel with time to wait before timing out

Returns

Promise<Channel | null>

the text channel that user joined