Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
function connectToVoiceChannel
import { connectToVoiceChannel } from "https://deno.land/x/discordeno@13.0.0-rc45/plugins/helpers/deps.ts";

Connect or join a voice channel inside a guild. By default, the "selfDeaf" option is true. Requires CONNECT and VIEW_CHANNEL permissions.

Parameters

bot: Bot
guildId: bigint
channelId: bigint
optional
options: AtLeastOne<Omit<UpdateVoiceState, "guildId" | "channelId">>