Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/discordeno_patched/helpers/guilds/mod.ts>leaveVoiceChannel

Discord API library for Node and Deno
Latest
function leaveVoiceChannel
import { leaveVoiceChannel } from "https://deno.land/x/discordeno_patched@18.0.3/helpers/guilds/mod.ts";

Leaves the voice channel the bot user is currently in.

This function sends the Update Voice State gateway command over the gateway behind the scenes.

Parameters

bot: Bot
  • The bot instance to use to make the request.
guildId: BigString
  • The ID of the guild the voice channel to leave is in.

Returns

Promise<void>