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

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

Parameters

channelId: string
  • channel id to join
optional
timeout: number
  • asynchronously join channel with time to wait before timing out
optional
force: boolean
  • forces a user to join a voice channel

Returns

Promise<Channel>

the channel that the user joined, null if none