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.");