[cm] Use file-scoped namespaces.

This commit is contained in:
West14
2022-02-14 10:35:28 +02:00
parent 05778f7960
commit f80b5d0da8
2 changed files with 69 additions and 71 deletions
+3 -4
View File
@@ -8,10 +8,10 @@ using Kruzya.TelegramBot.Core.Data;
using Telegram.Bot;
using Telegram.Bot.Types;
namespace West.TelegramBot.ChatManagement.Handler
namespace West.TelegramBot.ChatManagement.Handler;
public class Ban : CommonHandler
{
public class Ban : CommonHandler
{
public Ban(CoreContext db) : base(db) {}
[Command("ban", CommandParseMode.Both)]
@@ -40,5 +40,4 @@ namespace West.TelegramBot.ChatManagement.Handler
CanAddWebPagePreviews = true
});
}
}
}
+3 -4
View File
@@ -10,10 +10,10 @@ using Kruzya.TelegramBot.Core.Extensions;
using Telegram.Bot;
using Telegram.Bot.Types.Enums;
namespace West.TelegramBot.ChatManagement.Handler
namespace West.TelegramBot.ChatManagement.Handler;
public class Warn : CommonHandler
{
public class Warn : CommonHandler
{
public Warn(CoreContext db) : base(db) {}
[Command("warn", CommandParseMode.Both)]
@@ -59,5 +59,4 @@ namespace West.TelegramBot.ChatManagement.Handler
disableNotification: true,
parseMode: ParseMode.Html);
}
}
}