mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-05-29 05:55:21 -04:00
Update JsonExtensions to 1.0.1
This commit is contained in:
parent
d72fe594b4
commit
5a62ce6af9
2 changed files with 3 additions and 3 deletions
|
@ -54,7 +54,7 @@ namespace DiscordChatExporter.Domain.Discord
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
return await response.Content.ReadAsJsonAsync(default);
|
return await response.Content.ReadAsJsonAsync();
|
||||||
}
|
}
|
||||||
|
|
||||||
private async ValueTask<JsonElement?> TryGetJsonResponseAsync(string url)
|
private async ValueTask<JsonElement?> TryGetJsonResponseAsync(string url)
|
||||||
|
@ -62,7 +62,7 @@ namespace DiscordChatExporter.Domain.Discord
|
||||||
using var response = await GetResponseAsync(url);
|
using var response = await GetResponseAsync(url);
|
||||||
|
|
||||||
return response.IsSuccessStatusCode
|
return response.IsSuccessStatusCode
|
||||||
? await response.Content.ReadAsJsonAsync(default)
|
? await response.Content.ReadAsJsonAsync()
|
||||||
: (JsonElement?) null;
|
: (JsonElement?) null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<Import Project="../DiscordChatExporter.props" />
|
<Import Project="../DiscordChatExporter.props" />
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="JsonExtensions" Version="1.0.0" />
|
<PackageReference Include="JsonExtensions" Version="1.0.1" />
|
||||||
<PackageReference Include="MiniRazor" Version="1.1.0" />
|
<PackageReference Include="MiniRazor" Version="1.1.0" />
|
||||||
<PackageReference Include="Polly" Version="7.2.1" />
|
<PackageReference Include="Polly" Version="7.2.1" />
|
||||||
<PackageReference Include="Tyrrrz.Extensions" Version="1.6.5" />
|
<PackageReference Include="Tyrrrz.Extensions" Version="1.6.5" />
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue