Browse Source

fix: close-stage bucketId being null (#2299)

tags/3.7.0
Armano den Boef GitHub 3 years ago
parent
commit
725d2557dd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/Discord.Net.Rest/DiscordRestApiClient.cs

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

@@ -673,9 +673,11 @@ namespace Discord.API

options = RequestOptions.CreateOrClone(options);

var bucket = new BucketIds(channelId: channelId);

try
{
await SendAsync("DELETE", $"stage-instances/{channelId}", options: options).ConfigureAwait(false);
await SendAsync("DELETE", () => $"stage-instances/{channelId}", bucket, options: options).ConfigureAwait(false);
}
catch (HttpException httpEx) when (httpEx.HttpCode == HttpStatusCode.NotFound) { }
}


Loading…
Cancel
Save