Render alerts list functionality as embeds and make more pretty

This commit is contained in:
2024-12-03 04:13:12 -08:00
parent 96249bd608
commit ac5d794df1
3 changed files with 64 additions and 20 deletions

View File

@@ -49,4 +49,10 @@ class History:
self._history.append(datum)
return await self._process_update_triggers()
async def find_update_trigger_from_alert(self, alert: Alert) -> UpdateTrigger:
for trigger in self._update_triggers:
if trigger.alert == alert:
return trigger
raise ValueError