Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/natico/examples/deps.ts>connectToVoiceChannel

A powerful and customizable framework for Discordeno
Latest
function connectToVoiceChannel
import { connectToVoiceChannel } from "https://deno.land/x/natico@4.0.0-pre.4/examples/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">>