Skip to main content
Deno 2 is finally here 🎉️
Learn more
Extremely Popular
Go to Latest
class VoiceStateToggles
Re-export
import { VoiceStateToggles } from "https://deno.land/x/discordeno@17.2.0/template/minimal/deps.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.