NadekoBot.Extensions should now be fully annotated with nullable reference types as well as many classes from NadekoBot.Common

This commit is contained in:
Kwoth
2021-12-28 10:44:00 +01:00
parent 0634470a8a
commit 59f5056035
543 changed files with 1895 additions and 1448 deletions

View File

@@ -1,4 +1,5 @@
namespace NadekoBot;
#nullable disable
namespace NadekoBot;
public sealed record SmartEmbedText : SmartText
{
@@ -115,4 +116,4 @@ public sealed record SmartEmbedText : SmartText
}
}
}
}
}

View File

@@ -1,4 +1,5 @@
namespace NadekoBot;
#nullable disable
namespace NadekoBot;
public sealed record SmartPlainText : SmartText
{
@@ -15,4 +16,4 @@ public sealed record SmartPlainText : SmartText
public override string ToString()
=> Text;
}
}

View File

@@ -1,4 +1,5 @@
using Newtonsoft.Json;
#nullable disable
using Newtonsoft.Json;
namespace NadekoBot;
@@ -55,4 +56,4 @@ public abstract record SmartText
return new SmartPlainText(input);
}
}
}
}

View File

@@ -1,4 +1,5 @@
using Newtonsoft.Json;
#nullable disable
using Newtonsoft.Json;
namespace NadekoBot;
@@ -8,4 +9,4 @@ public class SmartTextEmbedAuthor
[JsonProperty("icon_url")]
public string IconUrl { get; set; }
public string Url { get; set; }
}
}

View File

@@ -1,8 +1,9 @@
namespace NadekoBot;
#nullable disable
namespace NadekoBot;
public class SmartTextEmbedField
{
public string Name { get; set; }
public string Value { get; set; }
public bool Inline { get; set; }
}
}

View File

@@ -1,4 +1,5 @@
using Newtonsoft.Json;
#nullable disable
using Newtonsoft.Json;
namespace NadekoBot;
@@ -9,4 +10,4 @@ public class SmartTextEmbedFooter
public string Text { get; set; }
[JsonProperty("icon_url")]
public string IconUrl { get; set; }
}
}