mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 16:57:22 +00:00
types: add VoiceState type
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
import { SnakeCaseProps } from "../util.ts";
|
||||
|
||||
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?: GuildMember;
|
||||
/** 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;
|
||||
}
|
||||
|
||||
/** https://discord.com/developers/docs/resources/voice#voice-state-object-voice-state-structure */
|
||||
export type DiscordVoiceState = SnakeCaseProps<VoiceState>;
|
||||
Reference in New Issue
Block a user