From fa5f79eac208bc1e15bb0800dae0e1130390b485 Mon Sep 17 00:00:00 2001 From: Christopher F Date: Sat, 28 May 2016 10:53:29 -0400 Subject: [PATCH] Patched TestRestClient for compatibility with newest version. (pre-fetch cleanup) --- test/Discord.Net.Tests/Rest/Framework/TestRestClient.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/Discord.Net.Tests/Rest/Framework/TestRestClient.cs b/test/Discord.Net.Tests/Rest/Framework/TestRestClient.cs index a1b4f1b10..620f55b4e 100644 --- a/test/Discord.Net.Tests/Rest/Framework/TestRestClient.cs +++ b/test/Discord.Net.Tests/Rest/Framework/TestRestClient.cs @@ -19,13 +19,15 @@ namespace Discord.Tests.Rest } - Task IRestClient.Send(string method, string endpoint, IReadOnlyDictionary multipartParams) + Task IRestClient.Send(string method, string endpoint, IReadOnlyDictionary multipartParams, bool headerOnly = false) { + if (headerOnly) return null; throw new NotImplementedException("method only used for SendFile, not concerned with that yet."); } - Task IRestClient.Send(string method, string endpoint, string json) + Task IRestClient.Send(string method, string endpoint, string json, bool headerOnly = false) { + if (headerOnly) return null; return Task.FromResult(new MemoryStream(Encoding.UTF8.GetBytes(EndpointHandler.Instance.HandleMessage(method, endpoint, json)))); }