From 27f5fb1953af7365fb89cf60cc6fdabddf00f177 Mon Sep 17 00:00:00 2001 From: milkk holday <33862452+openmilk@users.noreply.github.com> Date: Sat, 14 May 2022 03:26:24 +1000 Subject: [PATCH] fixed formating --- src/Discord.Net.Rest/DiscordRestApiClient.cs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/Discord.Net.Rest/DiscordRestApiClient.cs b/src/Discord.Net.Rest/DiscordRestApiClient.cs index 8e4c8d554..d2cd9a2b9 100644 --- a/src/Discord.Net.Rest/DiscordRestApiClient.cs +++ b/src/Discord.Net.Rest/DiscordRestApiClient.cs @@ -820,13 +820,6 @@ namespace Discord.API options = RequestOptions.CreateOrClone(options); var ids = new BucketIds(webhookId: webhookId); - - string threadQuery = ""; - if (threadId.HasValue) - { - threadQuery = $"&thread_id=${threadId}"; - } - return await SendJsonAsync("POST", () => $"webhooks/{webhookId}/{AuthToken}?{WebhookQuery(true, threadId)}", args, ids, clientBucket: ClientBucketType.SendEdit, options: options).ConfigureAwait(false); } @@ -903,12 +896,6 @@ namespace Discord.API throw new ArgumentOutOfRangeException($"Message content is too long, length must be less or equal to {DiscordConfig.MaxMessageSize}.", nameof(args.Content)); } - string threadQuery = ""; - if (threadId.HasValue) - { - threadQuery = $"&"; - } - var ids = new BucketIds(webhookId: webhookId); return await SendMultipartAsync("POST", () => $"webhooks/{webhookId}/{AuthToken}?{WebhookQuery(true, threadId)}", args.ToDictionary(), ids, clientBucket: ClientBucketType.SendEdit, options: options).ConfigureAwait(false); }