diff --git a/src/NadekoBot/Bot.cs b/src/NadekoBot/Bot.cs index f3149c838..13a37ed91 100644 --- a/src/NadekoBot/Bot.cs +++ b/src/NadekoBot/Bot.cs @@ -1,10 +1,9 @@ #nullable disable -using Discord.Interactions; using Microsoft.Extensions.DependencyInjection; using NadekoBot.Common.Configs; using NadekoBot.Common.ModuleBehaviors; using NadekoBot.Db; -using NadekoBot.Modules.Administration.Services; +using NadekoBot.Modules.Administration; using NadekoBot.Services.Database.Models; using System.Collections.Immutable; using System.Diagnostics; diff --git a/src/NadekoBot/Common/ILogCommandService.cs b/src/NadekoBot/Common/ILogCommandService.cs new file mode 100644 index 000000000..0fd81e140 --- /dev/null +++ b/src/NadekoBot/Common/ILogCommandService.cs @@ -0,0 +1,31 @@ +using NadekoBot.Services.Database.Models; + +namespace NadekoBot.Common; + +public interface ILogCommandService +{ + void AddDeleteIgnore(ulong xId); + Task LogServer(ulong guildId, ulong channelId, bool actionValue); + bool LogIgnore(ulong guildId, ulong itemId, IgnoredItemType itemType); + LogSetting? GetGuildLogSettings(ulong guildId); + bool Log(ulong guildId, ulong? channelId, LogType type); +} + +public enum LogType +{ + Other, + MessageUpdated, + MessageDeleted, + UserJoined, + UserLeft, + UserBanned, + UserUnbanned, + UserUpdated, + ChannelCreated, + ChannelDestroyed, + ChannelUpdated, + UserPresence, + VoicePresence, + VoicePresenceTTS, + UserMuted +} \ No newline at end of file diff --git a/src/NadekoBot/Modules/Administration/Common/LogType.cs b/src/NadekoBot/Modules/Administration/Common/LogType.cs deleted file mode 100644 index 494318da9..000000000 --- a/src/NadekoBot/Modules/Administration/Common/LogType.cs +++ /dev/null @@ -1,21 +0,0 @@ -#nullable disable -namespace NadekoBot.Modules.Administration; - -public enum LogType -{ - Other, - MessageUpdated, - MessageDeleted, - UserJoined, - UserLeft, - UserBanned, - UserUnbanned, - UserUpdated, - ChannelCreated, - ChannelDestroyed, - ChannelUpdated, - UserPresence, - VoicePresence, - VoicePresenceTTS, - UserMuted -} \ No newline at end of file diff --git a/src/NadekoBot/Modules/Music/Music.cs b/src/NadekoBot/Modules/Music/Music.cs index da263ebfe..2b883e7a5 100644 --- a/src/NadekoBot/Modules/Music/Music.cs +++ b/src/NadekoBot/Modules/Music/Music.cs @@ -1,5 +1,4 @@ #nullable disable -using NadekoBot.Modules.Administration.Services; using NadekoBot.Modules.Music.Services; using NadekoBot.Services.Database.Models;