Skip to content

Commit

Permalink
fix: close-stage bucketId being null (#2299)
Browse files Browse the repository at this point in the history
  • Loading branch information
csmir committed May 18, 2022
1 parent e35fbed commit 725d255
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Discord.Net.Rest/DiscordRestApiClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -673,9 +673,11 @@ public async Task DeleteStageInstanceAsync(ulong channelId, RequestOptions optio

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) { }
}
Expand Down

0 comments on commit 725d255

Please sign in to comment.