UNPKG

dressed

Version:

A sleek, serverless-ready Discord bot framework.

19 lines (18 loc) 1.05 kB
import type { RESTGetAPIGuildVoiceStateUserResult, RESTGetAPIVoiceRegionsResult, RESTPatchAPIGuildVoiceStateCurrentMemberJSONBody, RESTPatchAPIGuildVoiceStateUserJSONBody, Snowflake } from "discord-api-types/v10"; /** * Returns an array of voice region objects that can be used when setting a voice or stage channel's rtc_region. */ export declare function listVoiceRegions(): Promise<RESTGetAPIVoiceRegionsResult>; /** * Get a user's current voice state. * @param guild The guild to get from * @param user The user to get the voice state for (defaults to self) */ export declare function getVoiceState(guild: Snowflake, user?: Snowflake): Promise<RESTGetAPIGuildVoiceStateUserResult>; /** * Update a user's voice state. * @param guild The guild to update in * @param user The user to set the voice state of * @param data The new voice state data */ export declare function modifyVoiceState(guild: Snowflake, user: Snowflake, data: RESTPatchAPIGuildVoiceStateCurrentMemberJSONBody | RESTPatchAPIGuildVoiceStateUserJSONBody): Promise<void>;