//Voice States internal SocketVoiceState AddOrUpdateVoiceState(ClientState state, VoiceStateModel model) { SocketVoiceChannel voiceChannel = state.GetChannel(model.ChannelId.Value) as SocketVoiceChannel; SocketVoiceState voiceState = SocketVoiceState.Create(voiceChannel, model); _voiceStates[model.UserId] = voiceState; return(voiceState); }
internal static SocketVoiceState Create(SocketVoiceChannel voiceChannel, Model model) { return(new SocketVoiceState(voiceChannel, model.SessionId, model.SelfMute, model.SelfDeaf, model.Mute, model.Deaf, model.Suppress, model.SelfStream)); }