             self.disconnect()
         }
 
+        DefaultDiscordLogger.Logger.debug("VoiceEngine is ready!", type: logType)
+
         readSocket()
     }
 

    // currently only xsalsa20_poly1305 is supported
    // After this point we are good to go in sending encrypted voice packets
    private func selectProtocol(with ip: String, on port: Int) {
        // print("Selecting UDP protocol with ip: \(ip) on port: \(port)")

        let payloadData: [String: Any] = [
            "protocol": "udp",

        let base = voiceServerInformation.endpoint.components(separatedBy: ":")[0]
        let udpEndpoint = InternetAddress(hostname: base, port: UInt16(udpPort))

        DefaultDiscordLogger.Logger.debug("Starting voice UDP connection", type: logType)

        guard let client = try? UDPInternetSocket(address: udpEndpoint) else {
            disconnect()

