From c242d81af95b9d9b8c0627be8fcdb9eb3e78c1c0 Mon Sep 17 00:00:00 2001 From: emorell96 Date: Tue, 23 Mar 2021 22:25:12 -0700 Subject: [PATCH] added a SendAsync method to IRestClient that takes an IEnumerable> in order to be able to form a FormUrlEncodedContent which you need for getting the tokens. --- src/Discord.Net.Core/Net/Rest/IRestClient.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Discord.Net.Core/Net/Rest/IRestClient.cs b/src/Discord.Net.Core/Net/Rest/IRestClient.cs index 71010f70d..d6fda074f 100644 --- a/src/Discord.Net.Core/Net/Rest/IRestClient.cs +++ b/src/Discord.Net.Core/Net/Rest/IRestClient.cs @@ -33,6 +33,7 @@ namespace Discord.Net.Rest /// Task SendAsync(string method, string endpoint, CancellationToken cancelToken, bool headerOnly = false, string reason = null); Task SendAsync(string method, string endpoint, string json, CancellationToken cancelToken, bool headerOnly = false, string reason = null); + Task SendAsync(string method, string endpoint, IEnumerable> formDataContent, CancellationToken cancelToken, bool headerOnly, string reason = null); Task SendAsync(string method, string endpoint, IReadOnlyDictionary multipartParams, CancellationToken cancelToken, bool headerOnly = false, string reason = null); } }