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

x/oasis/packages/deps.ts>connectToVoiceChannel

An object oriented Discordeno framework
Latest
function connectToVoiceChannel
import { connectToVoiceChannel } from "https://deno.land/x/oasis@2.1.0/packages/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">>