Voice

List Voice Regions

GetAPIVoiceRegions

Returns an array of voice region objects that can be used when setting a voice or stage channel's rtc_region.

import { listVoiceRegions } from "dressed";
const voiceRegions = await listVoiceRegions();

Get Voice State

GetAPIGuildVoiceStateUser

Returns the specified user's voice state in the guild, defaults to self.

import { getVoiceState } from "dressed";
const voiceState = await getVoiceState(guildId, userId?);

Modify Voice State

PatchAPIGuildVoiceStateCurrentMember

Updates a user's voice state, defaults to self.

  • @param data.request_to_speak_timestamp Not usable for other users
import { modifyVoiceState } from "dressed";
await modifyVoiceState(guildId, data, userId?);