Removed unneeded NadekoSubmodule and NadekoSubmodule<T> classes

This commit is contained in:
Kwoth
2022-02-26 08:11:25 +01:00
parent f5a706f57a
commit 80800673b9
61 changed files with 61 additions and 68 deletions

View File

@@ -6,7 +6,7 @@ namespace NadekoBot.Modules.Administration;
public partial class Administration
{
[Group]
public partial class AutoAssignRoleCommands : NadekoSubmodule<AutoAssignRoleService>
public partial class AutoAssignRoleCommands : NadekoModule<AutoAssignRoleService>
{
[Cmd]
[RequireContext(ContextType.Guild)]

View File

@@ -8,7 +8,7 @@ namespace NadekoBot.Modules.Administration
{
[Group]
[OwnerOnly]
public partial class DangerousCommands : NadekoSubmodule<DangerousCommandsService>
public partial class DangerousCommands : NadekoModule<DangerousCommandsService>
{
private async Task InternalExecSql(string sql, params object[] reps)
{

View File

@@ -6,7 +6,7 @@ namespace NadekoBot.Modules.Administration;
public partial class Administration
{
[Group]
public partial class GameVoiceChannelCommands : NadekoSubmodule<GameVoiceChannelService>
public partial class GameVoiceChannelCommands : NadekoModule<GameVoiceChannelService>
{
[Cmd]
[RequireContext(ContextType.Guild)]

View File

@@ -3,7 +3,7 @@ namespace NadekoBot.Modules.Administration;
public partial class Administration
{
[Group]
public partial class GreetCommands : NadekoSubmodule<GreetService>
public partial class GreetCommands : NadekoModule<GreetService>
{
[Cmd]
[RequireContext(ContextType.Guild)]

View File

@@ -6,7 +6,7 @@ namespace NadekoBot.Modules.Administration;
public partial class Administration
{
[Group]
public partial class LocalizationCommands : NadekoSubmodule
public partial class LocalizationCommands : NadekoModule
{
private static readonly IReadOnlyDictionary<string, string> _supportedLocales = new Dictionary<string, string>
{

View File

@@ -7,7 +7,7 @@ namespace NadekoBot.Modules.Administration;
public partial class Administration
{
[Group]
public partial class MuteCommands : NadekoSubmodule<MuteService>
public partial class MuteCommands : NadekoModule<MuteService>
{
private async Task<bool> VerifyMutePermissions(IGuildUser runnerUser, IGuildUser targetUser)
{

View File

@@ -7,7 +7,7 @@ namespace NadekoBot.Modules.Administration;
public partial class Administration
{
[Group]
public partial class DiscordPermOverrideCommands : NadekoSubmodule<DiscordPermOverrideService>
public partial class DiscordPermOverrideCommands : NadekoModule<DiscordPermOverrideService>
{
// override stats, it should require that the user has managessages guild permission
// .po 'stats' add user guild managemessages

View File

@@ -6,7 +6,7 @@ namespace NadekoBot.Modules.Administration;
public partial class Administration
{
[Group]
public partial class PlayingRotateCommands : NadekoSubmodule<PlayingRotateService>
public partial class PlayingRotateCommands : NadekoModule<PlayingRotateService>
{
[Cmd]
[OwnerOnly]

View File

@@ -4,7 +4,7 @@ namespace NadekoBot.Modules.Administration;
public partial class Administration
{
[Group]
public partial class PrefixCommands : NadekoSubmodule
public partial class PrefixCommands : NadekoModule
{
public enum Set
{

View File

@@ -8,7 +8,7 @@ namespace NadekoBot.Modules.Administration;
public partial class Administration
{
[Group]
public partial class ProtectionCommands : NadekoSubmodule<ProtectionService>
public partial class ProtectionCommands : NadekoModule<ProtectionService>
{
[Cmd]
[RequireContext(ContextType.Guild)]

View File

@@ -6,7 +6,7 @@ namespace NadekoBot.Modules.Administration;
public partial class Administration
{
[Group]
public partial class PruneCommands : NadekoSubmodule<PruneService>
public partial class PruneCommands : NadekoModule<PruneService>
{
private static readonly TimeSpan _twoWeeks = TimeSpan.FromDays(14);

View File

@@ -9,7 +9,7 @@ namespace NadekoBot.Modules.Administration;
public partial class Administration
{
public partial class RoleCommands : NadekoSubmodule<RoleCommandsService>
public partial class RoleCommands : NadekoModule<RoleCommandsService>
{
public enum Exclude { Excl }

View File

@@ -7,7 +7,7 @@ namespace NadekoBot.Modules.Administration;
public partial class Administration
{
[Group]
public partial class SelfCommands : NadekoSubmodule<SelfService>
public partial class SelfCommands : NadekoModule<SelfService>
{
public enum SettableUserStatus
{

View File

@@ -7,7 +7,7 @@ namespace NadekoBot.Modules.Administration;
public partial class Administration
{
[Group]
public partial class SelfAssignedRolesCommands : NadekoSubmodule<SelfAssignedRolesService>
public partial class SelfAssignedRolesCommands : NadekoModule<SelfAssignedRolesService>
{
[Cmd]
[RequireContext(ContextType.Guild)]

View File

@@ -7,7 +7,7 @@ public partial class Administration
{
[Group]
[NoPublicBot]
public partial class LogCommands : NadekoSubmodule<ILogCommandService>
public partial class LogCommands : NadekoModule<ILogCommandService>
{
[Cmd]
[RequireContext(ContextType.Guild)]

View File

@@ -6,7 +6,7 @@ namespace NadekoBot.Modules.Administration;
public partial class Administration
{
[Group]
public partial class TimeZoneCommands : NadekoSubmodule<GuildTimezoneService>
public partial class TimeZoneCommands : NadekoModule<GuildTimezoneService>
{
[Cmd]
[RequireContext(ContextType.Guild)]

View File

@@ -11,7 +11,7 @@ namespace NadekoBot.Modules.Administration;
public partial class Administration
{
[Group]
public partial class UserPunishCommands : NadekoSubmodule<UserPunishService>
public partial class UserPunishCommands : NadekoModule<UserPunishService>
{
public enum AddRole
{

View File

@@ -6,7 +6,7 @@ namespace NadekoBot.Modules.Administration;
public partial class Administration
{
[Group]
public partial class VcRoleCommands : NadekoSubmodule<VcRoleService>
public partial class VcRoleCommands : NadekoModule<VcRoleService>
{
[Cmd]
[UserPerm(GuildPerm.ManageRoles)]