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

x/harmony/src/structures/voiceState.ts>VoiceState

An easy to use Discord API Library for Deno.
Go to Latest
class VoiceState
extends Base
import { VoiceState } from "https://deno.land/x/harmony@v2.8.0/src/structures/voiceState.ts";

Constructors

new
VoiceState(
client: Client,
_data: { user: User; channel: VoiceChannel | null; member?: Member; guild?: Guild; },
)

Properties

channel: VoiceChannel | null
channelID: string | null
deaf: boolean
optional
guild: Guild
optional
member: Member
mute: boolean
selfDeaf: boolean
selfMute: boolean
sessionID: string
optional
stream: boolean
suppress: boolean
user: User
video: boolean

Methods

disconnect(): Promise<Member | undefined>

Disconnects a Member from connected VC

moveChannel(channel?: string | VoiceChannel | null): Promise<Member | undefined>

Moves a Member to another VC

setDeaf(deaf?: boolean): Promise<Member | undefined>

Sets a Member deaf in VC

setMute(mute?: boolean): Promise<Member | undefined>

Sets a Member mute in VC

undeaf(): Promise<Member | undefined>

Undeafs the Member from VC.

unmute(): Promise<Member | undefined>

Unmutes the Member from VC.