mirror of
https://github.com/NoiTheCat/WorldTime.git
synced 2024-11-21 22:34:36 +00:00
Update dependencies
This commit is contained in:
parent
e6d48e7fa1
commit
5e02946502
2 changed files with 10 additions and 12 deletions
16
WorldTime.cs
16
WorldTime.cs
|
@ -120,20 +120,18 @@ 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":
|
||||||
return Task.CompletedTask;
|
case "Failed to resume previous session":
|
||||||
}
|
case "Discord.WebSocket.GatewayReconnectException: Server requested a reconnect":
|
||||||
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;
|
return Task.CompletedTask;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue