swc/crates/swc_bundler/tests/.cache/deno/927c6d70265b2c5a9fb2f822f0e0dfe3c8500149.ts
2021-11-09 20:42:49 +09:00

35 lines
1.2 KiB
TypeScript

// Loaded from https://deno.land/x/discordeno@11.0.0-rc.2/src/types/voice/voice_state.ts
import { GuildMemberWithUser } from "../members/guild_member.ts";
/** https://discord.com/developers/docs/resources/voice#voice-state-object-voice-state-structure */
export interface VoiceState {
/** The guild id this voice state is for */
guildId?: string;
/** The channel id this user is connected to */
channelId: string | null;
/** The user id this voice state is for */
userId: string;
/** The guild member this voice state is for */
member?: GuildMemberWithUser;
/** The session id for this voice state */
sessionId: string;
/** Whether this user is deafened by the server */
deaf: boolean;
/** Whether this user is muted by the server */
mute: boolean;
/** Whether this user is locally deafened */
selfDeaf: boolean;
/** Whether this user is locally muted */
selfMute: boolean;
/** Whether this user is streaming using "Go Live" */
selfStream?: boolean;
/** Whether this user's camera is enabled */
selfVideo: boolean;
/** Whether this user is muted by the current user */
suppress: boolean;
/** The time at which the user requested to speak */
requestToSpeakTimestamp: string | null;
}