/// <summary> /// If null is returned, no exception is thrown, so the test was successful. /// </summary> public static async Task <Exception> TestAsync(this RPCClient rpc) { try { await rpc.UptimeAsync().ConfigureAwait(false); } catch (Exception ex) { return(ex); } return(null); }