mirror of
https://github.com/NoiTheCat/WorldTime.git
synced 2024-11-21 14: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) {
|
||||
// Suppress certain messages
|
||||
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 "Connected":
|
||||
case "Ready":
|
||||
// case "Failed to resume previous session":
|
||||
// case "Resumed previous session":
|
||||
case "Disconnecting":
|
||||
case "Disconnected":
|
||||
// case "WebSocket connection was closed":
|
||||
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}");
|
||||
case "Resumed previous session":
|
||||
case "Failed to resume previous session":
|
||||
case "Discord.WebSocket.GatewayReconnectException: Server requested a reconnect":
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
|
|
|
@ -5,16 +5,16 @@
|
|||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<Version>2.0.0</Version>
|
||||
<Version>2.0.1</Version>
|
||||
<Authors>NoiTheCat</Authors>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<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="NodaTime" Version="3.0.9" />
|
||||
<PackageReference Include="Npgsql" Version="6.0.0-rc.2" />
|
||||
<PackageReference Include="Npgsql" Version="6.0.2" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
Loading…
Reference in a new issue