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,5 +1,4 @@
using Cloneable;
using NadekoBot.Common;
using NadekoBot.Common.Yml;
namespace NadekoBot.Modules.Xp;

View File

@@ -1,5 +1,4 @@
using Newtonsoft.Json;
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.PixelFormats;
namespace NadekoBot.Modules.Xp;
@@ -285,7 +284,7 @@ public class XpRgba32Converter : JsonConverter<Rgba32>
{
public override Rgba32 ReadJson(JsonReader reader, Type objectType, Rgba32 existingValue, bool hasExistingValue, JsonSerializer serializer)
{
return Color.ParseHex(reader.Value.ToString());
return SixLabors.ImageSharp.Color.ParseHex(reader.Value?.ToString());
}
public override void WriteJson(JsonWriter writer, Rgba32 value, JsonSerializer serializer)