private void OnVoiceServerUpdated(JsonVoiceServerUpdate arg) { var config = new VoiceServerConfig(arg); Voice.UpdateVoiceServerConfig(config); VoiceServerUpdated?.Invoke(this, config); }
internal VoiceServerConfig(JsonVoiceServerUpdate json) { GuildId = json.GuildId; ChannelId = json.ChannelId; Endpoint = json.Endpoint; Token = json.Token; Json = json; }