Implicit usings and more global usings

This commit is contained in:
Kwoth
2021-12-21 02:36:47 +01:00
parent 9223d78849
commit c66e491ce9
317 changed files with 272 additions and 1425 deletions
@@ -1,5 +1,4 @@
using System.Runtime.CompilerServices;
using Discord.Commands;
namespace NadekoBot.Common.Attributes;
+1 -3
View File
@@ -1,6 +1,4 @@
using Discord.Commands;
namespace Discord;
namespace Discord;
public class BotPermAttribute : RequireBotPermissionAttribute
{
@@ -1,6 +1,4 @@
using System.IO;
namespace NadekoBot.Common.Attributes;
namespace NadekoBot.Common.Attributes;
public static class CommandNameLoadHelper
{
@@ -1,6 +1,4 @@
using Discord.Commands;
namespace NadekoBot.Common.Attributes;
namespace NadekoBot.Common.Attributes;
[AttributeUsage(AttributeTargets.Method)]
public sealed class DescriptionAttribute : SummaryAttribute
@@ -1,5 +1,4 @@
using System.Runtime.CompilerServices;
using Discord.Commands;
namespace NadekoBot.Common.Attributes;
@@ -1,6 +1,4 @@
using Discord.Commands;
namespace NadekoBot.Common.Attributes;
namespace NadekoBot.Common.Attributes;
[AttributeUsage(AttributeTargets.Class)]
sealed class NadekoModuleAttribute : GroupAttribute
@@ -1,8 +1,5 @@
using System.Threading.Tasks;
using Discord.Commands;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
using NadekoBot.Extensions;
using NadekoBot.Services;
namespace NadekoBot.Common.Attributes;
+1 -4
View File
@@ -1,7 +1,4 @@
using Discord.Commands;
using NadekoBot.Services;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
namespace NadekoBot.Common.Attributes;
+1 -3
View File
@@ -1,6 +1,4 @@
using Discord.Commands;
namespace NadekoBot.Common.Attributes;
namespace NadekoBot.Common.Attributes;
[AttributeUsage(AttributeTargets.Method)]
public sealed class UsageAttribute : RemarksAttribute
+1 -3
View File
@@ -1,6 +1,4 @@
using System.Threading.Tasks;
using Discord.Commands;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
using NadekoBot.Modules.Administration.Services;
namespace Discord;