From c4ad9c6c856a17b4723791cc140cb12d98d3af16 Mon Sep 17 00:00:00 2001 From: "feroxfoxxo@gmail.com" Date: Sun, 19 Nov 2023 22:09:40 +1300 Subject: [PATCH] Change no links to too many links --- backend/AutoMods/Data/AutoModConfigRepository.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/AutoMods/Data/AutoModConfigRepository.cs b/backend/AutoMods/Data/AutoModConfigRepository.cs index c0e571b83..801323188 100644 --- a/backend/AutoMods/Data/AutoModConfigRepository.cs +++ b/backend/AutoMods/Data/AutoModConfigRepository.cs @@ -25,6 +25,9 @@ public async Task> GetConfigsByGuild(ulong guildId) => public async Task GetConfigsByGuildAndType(ulong guildId, AutoModType type) { + if (type == AutoModType.NoLinksAllowed) + type = AutoModType.TooManyLinks; + var config = await _autoModDatabase.SelectPunishmentsConfigForGuildAndType(guildId, type); return config ?? throw new ResourceNotFoundException($"Auto mod config {guildId}/{type} does not exist.");