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,3 +1,4 @@
#nullable disable
using NadekoBot.Services.Database.Models;
namespace NadekoBot.Modules.CustomReactions;
@@ -25,4 +26,4 @@ public class ExportedExpr
? null
: cr.GetReactions(),
};
}
}

View File

@@ -1,4 +1,5 @@
using NadekoBot.Modules.CustomReactions.Services;
#nullable disable
using NadekoBot.Modules.CustomReactions.Services;
namespace NadekoBot.Modules.CustomReactions;
@@ -333,4 +334,4 @@ public class CustomReactions : NadekoModule<CustomReactionsService>
await ctx.OkAsync();
}
}
}

View File

@@ -1,4 +1,5 @@
using NadekoBot.Services.Database.Models;
#nullable disable
using NadekoBot.Services.Database.Models;
using System.Runtime.CompilerServices;
namespace NadekoBot.Modules.CustomReactions.Extensions;
@@ -82,4 +83,4 @@ public enum WordPosition
Start,
Middle,
End,
}
}

View File

@@ -1,4 +1,5 @@
using NadekoBot.Common.ModuleBehaviors;
#nullable disable
using NadekoBot.Common.ModuleBehaviors;
using NadekoBot.Services.Database.Models;
using NadekoBot.Modules.CustomReactions.Extensions;
using NadekoBot.Modules.Permissions.Common;
@@ -726,4 +727,4 @@ public sealed class CustomReactionsService : IEarlyBehavior, IReadyExecutor
await TriggerReloadCustomReactions();
return true;
}
}
}