using System.Net; using Discord.API.Rest; namespace Discord.API; public class RestFailResponse(Exception? ex) : RestResponse { public override T Value => throw new InvalidOperationException(); public override HttpStatusCode StatusCode => throw new InvalidOperationException(); public override bool Success => false; public override RestError Error => throw new InvalidOperationException(); public Exception? Exception => ex; }