Skip to content

Commit

Permalink
Change no links to too many links
Browse files Browse the repository at this point in the history
  • Loading branch information
FeroxFoxxo committed Nov 19, 2023
1 parent 90b30b8 commit c4ad9c6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/AutoMods/Data/AutoModConfigRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ public async Task<List<AutoModConfig>> GetConfigsByGuild(ulong guildId) =>

public async Task<AutoModConfig> 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.");
Expand Down

0 comments on commit c4ad9c6

Please sign in to comment.