Browse Source

fixed formating

pull/2291/head
milkk holday 3 years ago
parent
commit
27f5fb1953
1 changed files with 0 additions and 13 deletions
  1. +0
    -13
      src/Discord.Net.Rest/DiscordRestApiClient.cs

+ 0
- 13
src/Discord.Net.Rest/DiscordRestApiClient.cs View File

@@ -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<Message>("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<Message>("POST", () => $"webhooks/{webhookId}/{AuthToken}?{WebhookQuery(true, threadId)}", args.ToDictionary(), ids, clientBucket: ClientBucketType.SendEdit, options: options).ConfigureAwait(false);
}


Loading…
Cancel
Save