Skip to main content
function isBotInVoiceChannel
import { isBotInVoiceChannel } from "https://deno.land/x/drex@v1.1.1/mod.ts";

The command can only be called if the bot is currently in a voice channel. GatewayIntents.GUILD_VOICE_STATES needs to be set.

Parameters

message: string

message or function called when the condition is not met

Returns

ApplicationCommandDecorator

wrapped function

Returns

ApplicationCommandDecorator