diff --git a/src/Nadeko.Bot.Common/Attributes/OnlyPublicBotAttribute.cs b/src/Nadeko.Bot.Common/Attributes/OnlyPublicBotAttribute.cs index 081ab8dbe..e9400ec17 100644 --- a/src/Nadeko.Bot.Common/Attributes/OnlyPublicBotAttribute.cs +++ b/src/Nadeko.Bot.Common/Attributes/OnlyPublicBotAttribute.cs @@ -12,7 +12,7 @@ public sealed class OnlyPublicBotAttribute : PreconditionAttribute CommandInfo command, IServiceProvider services) { -#if GLOBAL_NADEKO +#if GLOBAL_NADEKO || DEBUG return Task.FromResult(PreconditionResult.FromSuccess()); #else return Task.FromResult(PreconditionResult.FromError("Only available on the public bot.")); diff --git a/src/Nadeko.Bot.Common/Services/Impl/CommandsUtilityService.cs b/src/Nadeko.Bot.Common/Services/Impl/CommandsUtilityService.cs index 9102e28c4..f1259d512 100644 --- a/src/Nadeko.Bot.Common/Services/Impl/CommandsUtilityService.cs +++ b/src/Nadeko.Bot.Common/Services/Impl/CommandsUtilityService.cs @@ -90,7 +90,7 @@ public sealed class CommandsUtilityService : ICommandsUtilityService, INService return strs; } - public static Type GetNadekoOptionType(IEnumerable attributes) + public static Type? GetNadekoOptionType(IEnumerable attributes) => attributes .Select(a => a.GetType()) .Where(a => a.IsGenericType diff --git a/src/Nadeko.Cache/Nadeko.Cache.csproj b/src/Nadeko.Cache/Nadeko.Cache.csproj deleted file mode 100644 index b4348b812..000000000 --- a/src/Nadeko.Cache/Nadeko.Cache.csproj +++ /dev/null @@ -1,14 +0,0 @@ - - - - net7.0 - enable - enable - - - - - - - -