Browse Source

Init

pull/2299/head
Armano den Boef 3 years ago
parent
commit
c30b13a0ba
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