Implicit usings and more global usings

This commit is contained in:
Kwoth
2021-12-21 02:19:21 +01:00
parent 9223d78849
commit c66e491ce9
317 changed files with 272 additions and 1425 deletions

View File

@@ -1,9 +1,4 @@
using Discord;
using Discord.Commands;
using Discord.WebSocket;
using NadekoBot.Common;
using NadekoBot.Common.Collections;
using NadekoBot.Services;
using NadekoBot.Common.Collections;
using NadekoBot.Modules.Administration.Services;
using SixLabors.Fonts;
using SixLabors.ImageSharp;
@@ -14,14 +9,10 @@ using SixLabors.ImageSharp.Formats.Png;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;
using System.Globalization;
using System.IO;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Text.Json;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using NadekoBot.Common.Attributes;
using Color = Discord.Color;
using JsonSerializer = System.Text.Json.JsonSerializer;

View File

@@ -1,6 +1,4 @@
using System.Collections.Concurrent;
using System.Security.Cryptography;
using System.Threading.Tasks;
using System.Security.Cryptography;
using NadekoBot.Common.Collections;
using NadekoBot.Services.Database.Models;

View File

@@ -1,10 +1,4 @@
using Discord;
using Discord.Commands;
using Discord.WebSocket;
using System.Threading.Tasks;
using NadekoBot.Services;
namespace NadekoBot.Extensions;
namespace NadekoBot.Extensions;
public static class IMessageChannelExtensions
{

View File

@@ -1,8 +1,4 @@
using Discord;
using System.IO;
using System.Threading.Tasks;
using NadekoBot.Db.Models;
using NadekoBot.Services;
using NadekoBot.Db.Models;
namespace NadekoBot.Extensions;

View File

@@ -1,6 +1,4 @@
using Discord;
namespace NadekoBot.Extensions;
namespace NadekoBot.Extensions;
public static class MusicExtensions
{

View File

@@ -3,7 +3,6 @@
// https://github.com/aspnet/Common/blob/dev/shared/Microsoft.Extensions.Process.Sources/ProcessHelper.cs
using System.Diagnostics;
using System.IO;
using System.Runtime.InteropServices;
namespace NadekoBot.Extensions;

View File

@@ -1,8 +1,6 @@
using Newtonsoft.Json;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using NadekoBot.Common.Yml;
namespace NadekoBot.Extensions;