WIP: Moderation type registry #26

Closed
cswimr wants to merge 146 commits from aurora-3rd-party into main
Showing only changes of commit 1990b97518 - Show all commits

View file

@ -231,7 +231,9 @@ class Moderation(AuroraGuildModel):
if results:
cases = []
for result in results:
cases.append(cls.from_result(bot, result, guild_id))
case = cls.from_result(bot, result, guild_id)
if case.moderation_id != 0:
cases.append(case)
return cases
return []