Skip to main content
Module

x/harmony/mod.ts>VoiceChannel

An easy to use Discord API Library for Deno.
Go to Latest
class VoiceChannel
extends GuildChannel
Re-export
import { VoiceChannel } from "https://deno.land/x/harmony@v2.6.0/mod.ts";

Constructors

new
VoiceChannel(
client: Client,
guild: Guild,
)

Properties

bitrate: string
userLimit: number
voiceStates: GuildChannelVoiceStatesManager

Methods

disconnectAll(): Promise<Member[]>
disconnectMember(member: User | Member | string): Promise<Member | undefined>
join(options?: VoiceChannelJoinOptions): Promise<VoiceServerData>

Join the Voice Channel

leave(): Promise<void>

Leave the Voice Channel

setBitrate(rate: number | undefined): Promise<VoiceChannel>
setUserLimit(limit: number | undefined): Promise<VoiceChannel>