VoiceState
Signature
export declare class VoiceState extends BaseProperties
19Methods
12Properties
protected withMember?: GuildMemberStructure;isMutedGetterget isMuted(): boolean;isDeafenedGetterget isDeafened(): boolean;isCameraOnGetterget isCameraOn(): boolean;isStreamingGetterget isStreaming(): boolean;isSuppressedGetterget isSuppressed(): boolean;readonly client: UsingClient;guildId: string;deaf: boolean;mute: boolean;channelId: string | null;userId: string;sessionId: string;selfDeaf: boolean;selfMute: boolean;selfStream?: boolean | undefined;selfVideo: boolean;suppress: boolean;requestToSpeakTimestamp: string | null;Methods
constructorConstructorconstructor(client: UsingClient, data: APIVoiceState);member(force?: boolean): Promise<GuildMemberStructure>;user(force?: boolean): Promise<UserStructure>;channel(mode?: 'rest' | 'flow'): Promise<AllGuildVoiceChannels | undefined>;channel(mode: 'cache'): ReturnCache<AllGuildVoiceChannels | undefined>;setMute(mute?: boolean, reason?: string): Promise<GuildMemberStructure>;setDeaf(deaf?: boolean, reason?: string): Promise<GuildMemberStructure>;setSuppress(suppress?: boolean): Promise<void>;requestSpeak(date?: string | Date): Promise<undefined>;disconnect(reason?: string): Promise<GuildMemberStructure>;fetch(force?: boolean): Promise<VoiceStateStructure>;setChannel(channel_id: null | string, reason?: string): Promise<GuildMemberStructure>;guild(mode?: 'rest' | 'flow'): Promise<GuildStructure<'cached' | 'api'>>;guild(mode: 'cache'): ReturnCache<GuildStructure<'cached'> | undefined>;