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

x/harmony/src/interactions/decorators.ts>isUserInVoiceChannel

An easy to use Discord API Library for Deno.
Latest
function isUserInVoiceChannel
import { isUserInVoiceChannel } from "https://deno.land/x/harmony@v2.9.1/src/interactions/decorators.ts";

The command can only be called if the user 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

Parameters

callback: ApplicationCommandHandlerCallback

Returns

ApplicationCommandDecorator