More target-typed new and redundant paranthesis cleanup

This commit is contained in:
Kwoth
2021-12-20 00:33:11 +01:00
parent 345a9e9524
commit 1b2017024c
152 changed files with 573 additions and 580 deletions

View File

@@ -44,14 +44,14 @@ public sealed class Bot
_credsProvider = new BotCredsProvider(totalShards);
_creds = _credsProvider.GetCreds();
_db = new DbService(_creds);
_db = new(_creds);
if (shardId == 0)
{
_db.Setup();
}
Client = new DiscordSocketClient(new DiscordSocketConfig
Client = new(new()
{
MessageCacheSize = 50,
LogLevel = LogSeverity.Warning,
@@ -62,7 +62,7 @@ public sealed class Bot
ExclusiveBulkDelete = true,
});
_commandService = new CommandService(new CommandServiceConfig()
_commandService = new(new()
{
CaseSensitiveCommands = false,
DefaultRunMode = RunMode.Sync,