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

This commit is contained in:
Armano den Boef
2022-05-18 09:48:34 +02:00
committed by GitHub
parent e35fbedc0a
commit 725d2557dd

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