Browse Source

Add channel bucket id.

pull/843/head
Alex Gravely 7 years ago
parent
commit
4283c8c752
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/Discord.Net.Rest/DiscordRestApiClient.cs

+ 2
- 1
src/Discord.Net.Rest/DiscordRestApiClient.cs View File

@@ -1161,8 +1161,9 @@ namespace Discord.API
Preconditions.NotNull(args, nameof(args)); Preconditions.NotNull(args, nameof(args));
Preconditions.NotNull(args.Name, nameof(args.Name)); Preconditions.NotNull(args.Name, nameof(args.Name));
options = RequestOptions.CreateOrClone(options); options = RequestOptions.CreateOrClone(options);
var ids = new BucketIds(channelId: channelId);


return await SendJsonAsync<Webhook>("POST", () => $"channels/{channelId}/webhooks", args, new BucketIds(), options: options);
return await SendJsonAsync<Webhook>("POST", () => $"channels/{channelId}/webhooks", args, ids, options: options);
} }
public async Task<Webhook> GetWebhookAsync(ulong webhookId, RequestOptions options = null) public async Task<Webhook> GetWebhookAsync(ulong webhookId, RequestOptions options = null)
{ {


Loading…
Cancel
Save