mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-11-04 08:34:27 -05:00
- Ignored intent warnings on startup
- Moved FilterWordsChannelId to a separate table (needs testing) - Some todos updated
This commit is contained in:
@@ -3,8 +3,7 @@ using NadekoBot.Db;
|
||||
|
||||
namespace NadekoBot.Modules.Administration.Services;
|
||||
|
||||
// todo dateonly timeonly
|
||||
// todo timer
|
||||
// todo timers
|
||||
public class GameVoiceChannelService : INService
|
||||
{
|
||||
public ConcurrentHashSet<ulong> GameVoiceChannels { get; }
|
||||
|
||||
@@ -175,13 +175,13 @@ public partial class Permissions
|
||||
{
|
||||
var channel = (ITextChannel)ctx.Channel;
|
||||
|
||||
FilterChannelId removed;
|
||||
FilterWordsChannelId removed;
|
||||
await using (var uow = _db.GetDbContext())
|
||||
{
|
||||
var config =
|
||||
uow.GuildConfigsForId(channel.Guild.Id, set => set.Include(gc => gc.FilterWordsChannelIds));
|
||||
|
||||
var match = new FilterChannelId { ChannelId = channel.Id };
|
||||
var match = new FilterWordsChannelId { ChannelId = channel.Id };
|
||||
removed = config.FilterWordsChannelIds.FirstOrDefault(fc => fc.Equals(match));
|
||||
if (removed is null)
|
||||
config.FilterWordsChannelIds.Add(match);
|
||||
|
||||
Reference in New Issue
Block a user