- Ignored intent warnings on startup

- Moved FilterWordsChannelId to a separate table (needs testing)
- Some todos updated
This commit is contained in:
Kwoth
2022-01-10 14:18:34 +01:00
parent c58ae9fc13
commit b044eb2d9a
9 changed files with 2976 additions and 128 deletions

View File

@@ -14,16 +14,16 @@ public class FilterChannelId : DbEntity
public override int GetHashCode()
=> ChannelId.GetHashCode();
}
public class FilterInvitesChannelId : DbEntity
// todo check if filterwords migration works
public class FilterWordsChannelId : DbEntity
{
public ulong ChannelId { get; set; }
public bool Equals(FilterInvitesChannelId other)
public bool Equals(FilterWordsChannelId other)
=> ChannelId == other.ChannelId;
public override bool Equals(object obj)
=> obj is FilterInvitesChannelId fci && Equals(fci);
=> obj is FilterWordsChannelId fci && Equals(fci);
public override int GetHashCode()
=> ChannelId.GetHashCode();

View File

@@ -60,7 +60,7 @@ public class GuildConfig : DbEntity
public bool FilterWords { get; set; }
public HashSet<FilteredWord> FilteredWords { get; set; } = new();
public HashSet<FilterChannelId> FilterWordsChannelIds { get; set; } = new();
public HashSet<FilterWordsChannelId> FilterWordsChannelIds { get; set; } = new();
public HashSet<MutedUserId> MutedUsers { get; set; } = new();