Skip to main content
Deno 2 is finally here 🎉️
Learn more
Extremely Popular
Go to Latest
class VoiceStateToggles
import { VoiceStateToggles } from "https://deno.land/x/discordeno@13.0.0-rc45/transformers/toggles/mod.ts";

Constructors

new
VoiceStateToggles(voice: DiscordVoiceState)

Properties

readonly
deaf

Whether this user is deafened by the server

readonly
mute

Whether this user is muted by the server

readonly
selfDeaf

Whether this user is locally deafened

readonly
selfMute

Whether this user is locally muted

readonly
selfStream

Whether this user is streaming using "Go Live"

readonly
selfVideo

Whether this user's camera is enabled

readonly
suppress

Whether this user is muted by the current user

Methods

Checks whether or not the permissions exist in this

Lists all the toggles for the role and whether or not each is true or false.