Using pattern matching for nulls where applicable, discarded unused lambda parameters, cleaned up some classes. Unignored ServerLog commands which was mistakenly ignored due to a .gitignore rule

This commit is contained in:
Kwoth
2022-01-01 08:44:51 +01:00
parent f81f9fadd3
commit 9b4eb21321
91 changed files with 1591 additions and 224 deletions

View File

@@ -214,7 +214,7 @@ public sealed class MusicService : IMusicService
}
private Func<IMusicPlayer, Task> OnQueueStopped(ulong guildId)
=> mp =>
=> _ =>
{
if (_settings.TryGetValue(guildId, out var settings))
if (settings.AutoDisconnect)
@@ -355,7 +355,7 @@ public sealed class MusicService : IMusicService
},
channelId);
_outputChannels.AddOrUpdate(guildId, (channel, channel), (key, old) => (old.Default, channel));
_outputChannels.AddOrUpdate(guildId, (channel, channel), (_, old) => (old.Default, channel));
return true;
}