Update dependencies

This commit is contained in:
Noi 2022-01-04 14:48:35 -08:00
parent e6d48e7fa1
commit 5e02946502
2 changed files with 10 additions and 12 deletions

View file

@ -120,22 +120,20 @@ internal class WorldTime : IDisposable {
private Task DiscordClient_Log(LogMessage arg) { private Task DiscordClient_Log(LogMessage arg) {
// Suppress certain messages // Suppress certain messages
if (arg.Message != null) { if (arg.Message != null) {
switch (arg.Message) { // These warnings appear often as of Discord.Net v3...
if (arg.Message.StartsWith("Unknown Dispatch ") || arg.Message.StartsWith("Unknown Channel")) return Task.CompletedTask;
switch (arg.Message) // Connection status messages replaced by ShardManager's output
{
case "Connecting": case "Connecting":
case "Connected": case "Connected":
case "Ready": case "Ready":
// case "Failed to resume previous session":
// case "Resumed previous session":
case "Disconnecting": case "Disconnecting":
case "Disconnected": case "Disconnected":
// case "WebSocket connection was closed": case "Resumed previous session":
case "Failed to resume previous session":
case "Discord.WebSocket.GatewayReconnectException: Server requested a reconnect":
return Task.CompletedTask; return Task.CompletedTask;
} }
if (arg.Message == "Heartbeat Errored") {
// Replace this with a custom message; do not show stack trace
Program.Log("Discord.Net", $"{arg.Severity}: {arg.Message} - {arg.Exception.Message}");
return Task.CompletedTask;
}
Program.Log("Discord.Net", $"{arg.Severity}: {arg.Message}"); Program.Log("Discord.Net", $"{arg.Severity}: {arg.Message}");
} }

View file

@ -5,16 +5,16 @@
<TargetFramework>net6.0</TargetFramework> <TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<Version>2.0.0</Version> <Version>2.0.1</Version>
<Authors>NoiTheCat</Authors> <Authors>NoiTheCat</Authors>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="CommandLineParser" Version="2.8.0" /> <PackageReference Include="CommandLineParser" Version="2.8.0" />
<PackageReference Include="Discord.Net" Version="3.0.0-dev-20210822.1" /> <PackageReference Include="Discord.Net" Version="3.1.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" /> <PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="NodaTime" Version="3.0.9" /> <PackageReference Include="NodaTime" Version="3.0.9" />
<PackageReference Include="Npgsql" Version="6.0.0-rc.2" /> <PackageReference Include="Npgsql" Version="6.0.2" />
</ItemGroup> </ItemGroup>
</Project> </Project>